Skip to content

Commit 0749a84

Browse files
authored
chore(cli/deps): update nsis-tauri-utils to 0.3 (#9605)
1 parent 80db9df commit 0749a84

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri-bundler': 'patch:enhance'
3+
---
4+
5+
Update `nsis_tauri_utils` plugin to `0.3` and use the built-in NSIS download plugin, which reduces the NSIS installer size by 775kb.

tooling/bundler/src/bundle/windows/nsis.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,15 @@ const NSIS_URL: &str =
3737
const NSIS_SHA1: &str = "057e83c7d82462ec394af76c87d06733605543d4";
3838
const NSIS_APPLICATIONID_URL: &str = "https://github.com/tauri-apps/binary-releases/releases/download/nsis-plugins-v0/NSIS-ApplicationID.zip";
3939
const NSIS_TAURI_UTILS_URL: &str =
40-
"https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.2.2/nsis_tauri_utils.dll";
41-
const NSIS_TAURI_UTILS_SHA1: &str = "16DF1D1A5B4D5DF3859447279C55BE36D4109DFB";
40+
"https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.3.0/nsis_tauri_utils.dll";
41+
const NSIS_TAURI_UTILS_SHA1: &str = "01E48D6429B48B640230C6CE8F257C84758943AA";
4242

4343
#[cfg(target_os = "windows")]
4444
const NSIS_REQUIRED_FILES: &[&str] = &[
4545
"makensis.exe",
4646
"Bin/makensis.exe",
4747
"Stubs/lzma-x86-unicode",
4848
"Stubs/lzma_solid-x86-unicode",
49-
"Plugins/x86-unicode/ApplicationID.dll",
5049
"Plugins/x86-unicode/nsis_tauri_utils.dll",
5150
"Include/MUI2.nsh",
5251
"Include/FileFunc.nsh",
@@ -55,10 +54,7 @@ const NSIS_REQUIRED_FILES: &[&str] = &[
5554
"Include/WinMessages.nsh",
5655
];
5756
#[cfg(not(target_os = "windows"))]
58-
const NSIS_REQUIRED_FILES: &[&str] = &[
59-
"Plugins/x86-unicode/ApplicationID.dll",
60-
"Plugins/x86-unicode/nsis_tauri_utils.dll",
61-
];
57+
const NSIS_REQUIRED_FILES: &[&str] = &["Plugins/x86-unicode/nsis_tauri_utils.dll"];
6258

6359
const NSIS_REQUIRED_FILES_HASH: &[(&str, &str, &str, HashAlgorithm)] = &[(
6460
"Plugins/x86-unicode/nsis_tauri_utils.dll",

tooling/bundler/src/bundle/windows/templates/installer.nsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ Section WebView2
449449
!if "${INSTALLWEBVIEW2MODE}" == "downloadBootstrapper"
450450
Delete "$TEMP\MicrosoftEdgeWebview2Setup.exe"
451451
DetailPrint "$(webview2Downloading)"
452-
nsis_tauri_utils::download "https://go.microsoft.com/fwlink/p/?LinkId=2124703" "$TEMP\MicrosoftEdgeWebview2Setup.exe"
452+
NSISdl::download "https://go.microsoft.com/fwlink/p/?LinkId=2124703" "$TEMP\MicrosoftEdgeWebview2Setup.exe"
453453
Pop $0
454454
${If} $0 == 0
455455
DetailPrint "$(webview2DownloadSuccess)"

0 commit comments

Comments
 (0)