fix(bundler): fix error when renaming the downloaded zip of NSIS (#9956)

This commit is contained in:
Pylogmon 2024-06-05 09:47:03 +08:00 committed by GitHub
parent 07b02c9f96
commit 8b66174f0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()