Skip to content

Commit

Permalink
fix(bundler): fix error when renaming the downloaded zip of NSIS (tau…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon authored Jun 5, 2024
1 parent 07b02c9 commit 8b66174
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tooling/bundler/src/bundle/windows/nsis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,13 @@ pub fn bundle_project(settings: &Settings, updater: bool) -> crate::Result<Vec<P
.map(|d| d.join(".tauri"))
.unwrap_or_else(|| dirs_next::cache_dir().unwrap().join("tauri"));

if !tauri_tools_path.exists() {
create_dir_all(&tauri_tools_path)?;
}

let nsis_toolset_path = tauri_tools_path.join("NSIS");

if !nsis_toolset_path.exists() {
create_dir_all(&nsis_toolset_path)?;
get_and_extract_nsis(&nsis_toolset_path, &tauri_tools_path)?;
} else if NSIS_REQUIRED_FILES
.iter()
Expand Down

0 comments on commit 8b66174

Please sign in to comment.