# cargo-packager configuration for the NSIS installer (`cargo packager --release`). # # The app exe is the cargo binary. Everything the daemon needs at run time sits beside it in the # install root: the daemon, OBS and its data are built into record-daemon/target/release by the # daemon's own build and copied from there. The app downloads ffmpeg itself on the first export. "$schema" = "https://raw.githubusercontent.com/crabnebula-dev/cargo-packager/main/crates/packager/schema.json" name = "leaguerecorder" product-name = "League Recorder" identifier = "v.leaguerecorder" version = "0.3.3" description = "Records League of Legends games through the record-daemon." out-dir = "dist" # A config file is not read from Cargo.toml, so the binary has to be named. The app crate # builds one. binaries-dir = "target/release" binaries = [{ path = "leaguerecorder", main = true }] before-packaging-command = "cargo build --release && cargo build --release --manifest-path ../record-daemon/Cargo.toml" formats = ["nsis"] icons = ["icons/icon.ico"] # Everything the daemon loads from beside its exe: the binary, obs.dll and the DLLs it pulls in # (ffmpeg, x264, curl, srt, …), the module data and the plugins with their data. Shipping the # whole set keeps a first run offline; the daemon can also fetch OBS when a piece is missing. resources = [ { src = "../record-daemon/target/release/record-daemon.exe", target = "record-daemon.exe" }, { src = "../record-daemon/target/release/*.dll", target = "." }, { src = "../record-daemon/target/release/obs-*.exe", target = "." }, { src = "../record-daemon/target/release/data", target = "data" }, { src = "../record-daemon/target/release/obs-plugins", target = "obs-plugins" }, { src = "../record-daemon/target/release/win-capture", target = "win-capture" }, { src = "../record-daemon/target/release/rtmp-services", target = "rtmp-services" }, { src = "../record-daemon/target/release/iconengines", target = "iconengines" }, { src = "../record-daemon/target/release/styles", target = "styles" }, # The C++ runtime the exes and every OBS plugin import. Windows ships the UCRT but not these, # so a machine without the VC++ redistributable would not start the app. { src = "vendor/vcruntime/*.dll", target = "." }, ] [nsis] compression = "lzma" installer-mode = "currentUser"