app: download ffmpeg on the first run, not the first export
record-daemon / Build, check and test (push) Failing after 1m15s

Clip export needs ffmpeg, and the app fetched it when an export was
asked for: a minute of nothing at the worst moment, with the export
sitting behind it. The run that follows an install now fetches it in
the background and narrates the download in the notice banner; the
notice is updated in place and leaves another notice alone. A hidden
start (the login item) skips the fetch and leaves it to the export.

Only ffmpeg.exe is unpacked. The archive also carries ffplay and
ffprobe, which the export paths never call: unpacking all three put
370 MB beside the exe instead of 105 MB.

An export asked for while the download runs says so instead of
starting a second download over the same directory, and --fetch-ffmpeg
runs the same fetch from a shell, printing progress.

Checked on this machine: --fetch-ffmpeg downloaded in about 20 s,
unpacked, and answered "ready"; a second run returned at once.
This commit is contained in:
vhaudiquet committed 2026-11-19 22:23:08 +01:00
1 parent 20303d5ddc
commit 297118cfc1
4 files changed
+174 -5

No files matched your search

+4 -3
View File
@@ -100,9 +100,10 @@ reading (`history::tests`), highlight clipping (`highlight::tests`) and formatti
the channels left on. Recordings made before the split play as one mixed track.
8. 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.
9. Installer: `packager.toml` targets 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.
9. Installer: `packager.toml` targets NSIS and copies the daemon, its OBS files and the VC++
runtime beside the exe. `cargo install cargo-packager --locked && cargo packager --release`.
On the first run the app downloads ffmpeg (`--fetch-ffmpeg` does it from a shell), so clip
export is ready before the first clip. The installer has not been run on a clean VM yet.
10. Parity: `tauri-app` is still in the tree. Delete it once the items above are verified on a
machine with a live League Client.