Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions crates/tauri-bundler/src/bundle/windows/nsis/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::{
},
},
},
error::ErrorExt,
error::{bail, ErrorExt},
utils::{
http_utils::{download_and_verify, verify_file_hash, HashAlgorithm},
CommandExt,
Expand Down Expand Up @@ -650,7 +650,7 @@ fn build_nsis_app_installer(
);

let nsis_output_path = output_path.join(out_file);
let nsis_installer_path = settings.project_out_directory().to_path_buf().join(format!(
let nsis_installer_path = settings.project_out_directory().join(format!(
"bundle/{}/{}.exe",
if updater {
NSIS_UPDATER_OUTPUT_FOLDER_NAME
Expand Down Expand Up @@ -687,7 +687,7 @@ fn build_nsis_app_installer(
nsis_cmd.env("NSISPLUGINS", plugins_path);
}

nsis_cmd
let status = nsis_cmd
.args(["-INPUTCHARSET", "UTF8", "-OUTPUTCHARSET", "UTF8"])
.arg(match settings.log_level() {
log::Level::Error => "-V1",
Expand All @@ -704,6 +704,9 @@ fn build_nsis_app_installer(
command: "makensis.exe".to_string(),
error,
})?;
if !status.success() {
bail!("Failed to bundle app with makensis");
Comment thread
amrbashir marked this conversation as resolved.
Resolved
}

fs::rename(nsis_output_path, &nsis_installer_path)?;

Expand Down
Loading