Fix Windows CI

The external file should be read at runtime, not compile time.
This commit is contained in:
Damien Elmes 2023-05-20 11:20:16 +10:00
parent d715ac1675
commit 644b003687

View file

@ -100,10 +100,9 @@ fn build_installer(
bundle_root.join("fileassoc.nsh"),
include_str!("../fileassoc.nsh"),
)?;
#[cfg(windows)]
fs::write(
fs::copy(
"out/extracted/nsis_plugins/nsProcess.dll",
bundle_root.join("nsProcess.dll"),
include_bytes!("../../../../out/extracted/nsis_plugins/nsProcess.dll"),
)?;
let mut cmd = Command::new("c:/program files (x86)/nsis/makensis.exe");
cmd.arg("-V3");