From 644b00368777ab0584cfd1cdb24d2cf80ad02969 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 20 May 2023 11:20:16 +1000 Subject: [PATCH] Fix Windows CI The external file should be read at runtime, not compile time. --- qt/bundle/win/src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qt/bundle/win/src/main.rs b/qt/bundle/win/src/main.rs index 1eb1472de..f43ff6064 100644 --- a/qt/bundle/win/src/main.rs +++ b/qt/bundle/win/src/main.rs @@ -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");