Skip to content

Commit

Permalink
fix(nsis): verbose flag on unix systems
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog-crabnebula committed Mar 26, 2024
1 parent 0e94594 commit db1aa43
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changes/fix-nsis-on-unix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cargo-packager": patch
---

Fix bundling NSIS on Linux and macOS failing due to the verbose flag.
8 changes: 4 additions & 4 deletions crates/packager/src/package/nsis/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,10 +538,10 @@ fn build_nsis_app_installer(ctx: &Context, nsis_path: &Path) -> crate::Result<Ve

if let Some(level) = config.log_level {
nsis_cmd.arg(match level {
LogLevel::Error => "/V1",
LogLevel::Warn | LogLevel::Info => "/V2",
LogLevel::Debug => "/V3",
_ => "/V4",
LogLevel::Error => "-V1",
LogLevel::Warn | LogLevel::Info => "-V2",
LogLevel::Debug => "-V3",
_ => "-V4",
});
}

Expand Down

0 comments on commit db1aa43

Please sign in to comment.