Replaces the Vue/Tauri front end with a rune app that speaks the daemon's existing IPC protocol: settings (general, recording, audio), match history and game review with a scrubber, event markers and ffmpeg highlight export. Includes tray icon, launch at login, single instance, toasts, a headless snapshot path for checking screens, and a cargo-packager NSIS config. Rune is pinned to 4ddf696b0f and its three patched crates are vendored under app/vendor, since a dependency's [patch.crates-io] does not apply to the app. The daemon's OBS bootstrap never reached its IPC server on this machine, so the live check is a `--probe` command; the wire format is covered by tests.
League Recorder (rune app)
The native replacement for tauri-app. It talks to record-daemon over the daemon's existing
named-pipe protocol and draws with rune.
Run it
cargo run
The app starts the daemon if it isn't running, then reads its settings and status. cargo run -- --probe does the same without a window and prints the daemon's answers.
Headless renders, for looking at a screen without a window:
cargo run -- --snap history.png --scene history
cargo run -- --snap settings.png --scene settings
cargo run -- --snap recording.png --scene recording
cargo run -- --snap audio.png --scene audio
cargo run -- --snap review.png --scene review
A headless run never starts the daemon or touches the disk: App::new loads the sample
recordings from history::sample when it sees rune's tooling flags.
Test
cargo test
The tests pin the wire format the daemon parses (ipc::tests, settings::tests), timeline
reading (history::tests), highlight clipping (highlight::tests) and formatting.
Layout
| File | What it holds |
|---|---|
src/main.rs |
Entry point, single instance, notifications, app spec, --probe |
src/app.rs |
App state, poll (daemon answers, tray events, status), screen dispatch |
src/ipc.rs |
Protocol types and the named-pipe client, on a worker thread |
src/daemon.rs |
Finding, starting and logging the daemon |
src/settings.rs |
The daemon's settings model, field for field |
src/history.rs |
Timelines from disk and the values the cards show |
src/highlight.rs |
Highlight clips from kill events |
src/export.rs |
ffmpeg clip export |
src/os.rs |
Run key, toasts, tray icon and menu |
src/ui.rs |
Colours, cards, switches, sliders, buttons |
src/screens/ |
Settings, match history, game review |
Where this stands against TODO.txt
- Skeleton: done. Rune is pinned to
4ddf696b0f13ec618fdeb80b4c9ea1a6246547f1; the window opens and--snapwrites PNGs. - Pipe client: done. Requests are typed (
Command), the worker thread keeps the UI off tokio. The same types are tested against the daemon's serde names. - Settings: done. General, recording, audio and daemon tabs; device and encoder lists come from
getAudioDevicesandgetEncoders; changes go out throughupdateSettings. - Match history: done. Cards read
GameHistory.vue's fields (result, champion, queue, KDA, CS/m, gold/m, LP change) from the raw API responses in each timeline, with the queue filters. - Video: not libmpv. Rune ships a
Playerwith a native surface and frame seeking (Player::file,seek,duration), which removes the OpenGL and wgpu interop question the TODO opened. The review screen uses it. If clip-accurate seeking turns out to be worse than mpv's, the three options in TODO.txt still apply;Playeris confined toscreens/review.rs. - Game review: done. Scrubber with highlight markers, timeline list, play/pause, +/-10 s, and ffmpeg export per highlight.
- OS integration: tray icon with open/hide/record/quit, launch at login through the Run key, single instance, and toasts on recording start and stop.
- Installer:
packager.tomltargets NSIS and copies the daemon and its OBS files beside the exe.cargo install cargo-packager --locked && cargo packager --release. The installer has not been run on a clean VM yet. - Parity:
tauri-appis still in the tree. Delete it once the items above are verified on a machine with a live League Client.
Known gaps
- A live daemon check was not possible in this checkout: the daemon spends its startup in OBS
initialization and does not reach the IPC server here, so
--probetimes out. The client's JSON matches the daemon'sIpcCommandand response types in tests. - Champion and item images are not drawn: the app has no Data Dragon image cache yet, so cards show names and numbers.
- Settings currently apply on Save. Per-source volume editing exists in the model but has no control yet.
The vendored crates
vendor/ holds three crates copied from rune's own vendor/: wgpu-hal, winit and
parley_engine. Rune builds against patched copies of these, and a dependency's
[patch.crates-io] does not apply to the app that depends on it, so Cargo.toml repeats the
patches here. They match the rune rev above; when the rev moves, refresh them from that checkout:
cp -r ../rune/vendor/{wgpu-hal,winit,parley_engine} vendor/