From db1aa434c101e40eea98a3ff1c298bba703f437b Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 26 Mar 2024 08:40:23 -0300 Subject: [PATCH] fix(nsis): verbose flag on unix systems --- .changes/fix-nsis-on-unix.md | 5 +++++ crates/packager/src/package/nsis/mod.rs | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changes/fix-nsis-on-unix.md diff --git a/.changes/fix-nsis-on-unix.md b/.changes/fix-nsis-on-unix.md new file mode 100644 index 00000000..c52330d8 --- /dev/null +++ b/.changes/fix-nsis-on-unix.md @@ -0,0 +1,5 @@ +--- +"cargo-packager": patch +--- + +Fix bundling NSIS on Linux and macOS failing due to the verbose flag. \ No newline at end of file diff --git a/crates/packager/src/package/nsis/mod.rs b/crates/packager/src/package/nsis/mod.rs index 60786aad..484b33c4 100644 --- a/crates/packager/src/package/nsis/mod.rs +++ b/crates/packager/src/package/nsis/mod.rs @@ -538,10 +538,10 @@ fn build_nsis_app_installer(ctx: &Context, nsis_path: &Path) -> crate::Result "/V1", - LogLevel::Warn | LogLevel::Info => "/V2", - LogLevel::Debug => "/V3", - _ => "/V4", + LogLevel::Error => "-V1", + LogLevel::Warn | LogLevel::Info => "-V2", + LogLevel::Debug => "-V3", + _ => "-V4", }); }