mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-03 07:59:29 +00:00
292240cb71
yt-dlp's --downloader aria2c searched PATH for the bare name, but Firelink's bundled binaries use target-triple suffixed names (e.g. aria2c-aarch64-apple-darwin) — so yt-dlp could never find them. Add resolve_bundled_binary_path() helper that locates sidecar binaries in production (.app bundle) and dev mode. Before spawning yt-dlp, create a temp directory with bare-name symlinks to the suffixed binaries, set PATH=tempdir:/usr/bin:/bin, and pass --ffmpeg-location pointing there. Existing Settings → Engine checks (test_ffmpeg, test_aria2c via RPC, test_ytdlp) continue using app_handle.shell().sidecar() and are unaffected.