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"), bundle_root.join("fileassoc.nsh"),
include_str!("../fileassoc.nsh"), include_str!("../fileassoc.nsh"),
)?; )?;
#[cfg(windows)] fs::copy(
fs::write( "out/extracted/nsis_plugins/nsProcess.dll",
bundle_root.join("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"); let mut cmd = Command::new("c:/program files (x86)/nsis/makensis.exe");
cmd.arg("-V3"); cmd.arg("-V3");