Skip to content

Commit 128c580

Browse files
authored
chore(cli/deps): update nsis-tauri-utils to 0.3 (#9604)
1 parent 3f08054 commit 128c580

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
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.

.changes/drop-nsis-applicationid.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'tauri-bundler': 'patch:enhance'
33
---
44

5-
Use nsis's built-in com plugin instead of ApplicationID plugin, this reduces the installer size by 150-200 KB, and also fixes pinned shortcut not getting cleaned up on uninstall
5+
Use nsis's built-in COM plugin instead of `ApplicationID` plugin, this reduces the installer size by 100 KB, and also fixes pinned shortcut not getting cleaned up on uninstall.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ const NSIS_URL: &str =
3434
#[cfg(target_os = "windows")]
3535
const NSIS_SHA1: &str = "057e83c7d82462ec394af76c87d06733605543d4";
3636
const NSIS_TAURI_UTILS_URL: &str =
37-
"https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.2.2/nsis_tauri_utils.dll";
38-
const NSIS_TAURI_UTILS_SHA1: &str = "16DF1D1A5B4D5DF3859447279C55BE36D4109DFB";
37+
"https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.3.0/nsis_tauri_utils.dll";
38+
const NSIS_TAURI_UTILS_SHA1: &str = "01E48D6429B48B640230C6CE8F257C84758943AA";
3939

4040
#[cfg(target_os = "windows")]
4141
const NSIS_REQUIRED_FILES: &[&str] = &[

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ Section WebView2
459459
!if "${INSTALLWEBVIEW2MODE}" == "downloadBootstrapper"
460460
Delete "$TEMP\MicrosoftEdgeWebview2Setup.exe"
461461
DetailPrint "$(webview2Downloading)"
462-
nsis_tauri_utils::download "https://go.microsoft.com/fwlink/p/?LinkId=2124703" "$TEMP\MicrosoftEdgeWebview2Setup.exe"
462+
NSISdl::download "https://go.microsoft.com/fwlink/p/?LinkId=2124703" "$TEMP\MicrosoftEdgeWebview2Setup.exe"
463463
Pop $0
464464
${If} $0 == 0
465465
DetailPrint "$(webview2DownloadSuccess)"

0 commit comments

Comments
 (0)