Skip to content

Commit b5ef603

Browse files
chore(deps): update NSIS to 3.11 (#14478)
1 parent ce98d87 commit b5ef603

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.changes/nsis-3.11.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": patch:deps
3+
---
4+
5+
Updated NSIS from 3.8 to 3.11

crates/tauri-bundler/src/bundle/windows/nsis/mod.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ use std::{
3636
// URLS for the NSIS toolchain.
3737
#[cfg(target_os = "windows")]
3838
const NSIS_URL: &str =
39-
"https://github.com/tauri-apps/binary-releases/releases/download/nsis-3/nsis-3.zip";
39+
"https://github.com/tauri-apps/binary-releases/releases/download/nsis-3.11/nsis-3.11.zip";
4040
#[cfg(target_os = "windows")]
41-
const NSIS_SHA1: &str = "057e83c7d82462ec394af76c87d06733605543d4";
41+
const NSIS_SHA1: &str = "EF7FF767E5CBD9EDD22ADD3A32C9B8F4500BB10D";
4242
const NSIS_TAURI_UTILS_URL: &str =
4343
"https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.5.2/nsis_tauri_utils.dll";
4444
const NSIS_TAURI_UTILS_SHA1: &str = "D0C502F45DF55C0465C9406088FF016C2E7E6817";
@@ -55,6 +55,9 @@ const NSIS_REQUIRED_FILES: &[&str] = &[
5555
"Include/x64.nsh",
5656
"Include/nsDialogs.nsh",
5757
"Include/WinMessages.nsh",
58+
"Include/Win/COM.nsh",
59+
"Include/Win/Propkey.nsh",
60+
"Include/Win/RestartManager.nsh",
5861
];
5962
const NSIS_PLUGIN_FILES: &[&str] = &[
6063
"NSISdl.dll",
@@ -125,7 +128,7 @@ fn get_and_extract_nsis(nsis_toolset_path: &Path, _tauri_tools_path: &Path) -> c
125128
let data = download_and_verify(NSIS_URL, NSIS_SHA1, HashAlgorithm::Sha1)?;
126129
log::info!("extracting NSIS");
127130
crate::utils::http_utils::extract_zip(&data, _tauri_tools_path)?;
128-
fs::rename(_tauri_tools_path.join("nsis-3.08"), nsis_toolset_path)?;
131+
fs::rename(_tauri_tools_path.join("nsis-3.11"), nsis_toolset_path)?;
129132
}
130133

131134
// download additional plugins

0 commit comments

Comments
 (0)