Files

52 lines
2.8 KiB
Markdown
Raw Permalink Normal View History

2026-09-09 10:21:29 +02:00
# ClipForge
2026-09-09 15:36:53 +02:00
ClipForge is a Windows-first, local-first game clipping app inspired by tools like Medal and FTHR. It runs as a lightweight Tauri desktop app using the system WebView2, with Rust handling capture, replay clips, local storage, game events, hotkeys, and uploads.
2026-09-09 10:21:29 +02:00
## Current State
2026-09-09 15:36:53 +02:00
- Rolling replay capture writes short MP4 segments and manual clips extract from those segments.
- Full-session recording concatenates the session segments into a saved MP4.
2026-09-10 13:55:32 +02:00
- Capture prefers native Windows Graphics Capture with H.264 for detected game windows or the desktop, then falls back to FFmpeg Desktop Duplication (`ddagrab`) or `gdigrab`.
2026-09-09 15:36:53 +02:00
- FFmpeg Media Foundation H.264 is used when available.
- FFmpeg is bundled as a Tauri sidecar for installer builds, so users do not need a separate FFmpeg install.
- SQLite stores the clip library; `settings.json` stores versioned local settings.
- Global hotkeys are registered while the app runs: `F8`, `Shift+F8`, and `Alt+F7`.
- League Live Client events and Valve GSI-style events feed the auto-clip pipeline.
- Catbox, Litterbox, and custom multipart HTTP upload adapters are implemented; the UI can choose providers.
2026-09-10 13:55:32 +02:00
- Native WASAPI system-audio and mic capture are wired into the native Windows Graphics Capture path; FFmpeg remains the fallback capture path.
2026-09-09 10:21:29 +02:00
## Commands
```powershell
2026-09-09 15:36:53 +02:00
pnpm install
pnpm run build
2026-09-09 10:21:29 +02:00
cargo test
2026-09-09 15:36:53 +02:00
cargo check --manifest-path src-tauri\Cargo.toml
2026-09-09 10:21:29 +02:00
```
2026-09-09 15:36:53 +02:00
For the desktop app:
2026-09-09 10:21:29 +02:00
```powershell
2026-11-16 10:30:06 +01:00
pnpm run desktop:dev
2026-09-09 15:36:53 +02:00
pnpm run desktop:build
2026-09-09 10:21:29 +02:00
```
2026-09-09 15:36:53 +02:00
`pnpm run desktop:build` prepares the FFmpeg sidecar, builds the frontend, builds the Tauri app, and produces MSI/NSIS installers under `src-tauri/target/release/bundle/`.
2026-09-09 10:21:29 +02:00
## Architecture
2026-11-16 10:30:06 +01:00
See [architecture](docs/architecture.md), [implementation status](docs/implementation-status.md), and [product spec](docs/product-spec.md).
2026-09-09 10:21:29 +02:00
## Desktop Installer
2026-11-16 10:30:06 +01:00
Installer filenames follow the current version and architecture. For version 0.1.1, they are expected under:
2026-09-09 15:36:53 +02:00
2026-11-16 10:30:06 +01:00
- `src-tauri/target/release/bundle/msi/ClipForge_0.1.1_x64_en-US.msi`
- `src-tauri/target/release/bundle/nsis/ClipForge_0.1.1_x64-setup.exe`
2026-09-09 10:21:29 +02:00
2026-09-10 14:26:50 +02:00
The NSIS setup EXE installs for the current Windows user by default and creates the normal Windows uninstaller entry/file during installation. The MSI can also be removed through Windows Apps/Programs and Features.
2026-11-16 10:30:06 +01:00
## Gitea Releases
2026-09-10 14:26:50 +02:00
2026-11-16 10:30:06 +01:00
Gitea Actions builds Windows installer artifacts on pushes to `master`/`main`, pull requests, and manual runs. Any pushed file change, including newly added files, triggers a build. Pushing a tag like `v0.1.1` also publishes the MSI and setup EXE to a Gitea release. The workflow requires a Windows Gitea runner registered with the `windows:host` label, with PowerShell 7, Node.js, Git, NSIS, and WiX Toolset 3 installed. Enable Actions for this repository and allow the job token `code: read` and `releases: write` permissions.
2026-09-10 14:26:50 +02:00