From 128c5800091b7fda54bf7d157b785066281e0c74 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Tue, 30 Apr 2024 14:54:49 +0300 Subject: [PATCH] chore(cli/deps): update `nsis-tauri-utils` to `0.3` (#9604) --- .changes/bundler-nsis-tauri-utils.md | 5 +++++ .changes/drop-nsis-applicationid.md | 2 +- tooling/bundler/src/bundle/windows/nsis.rs | 4 ++-- tooling/bundler/src/bundle/windows/templates/installer.nsi | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changes/bundler-nsis-tauri-utils.md diff --git a/.changes/bundler-nsis-tauri-utils.md b/.changes/bundler-nsis-tauri-utils.md new file mode 100644 index 000000000..27fd690ec --- /dev/null +++ b/.changes/bundler-nsis-tauri-utils.md @@ -0,0 +1,5 @@ +--- +'tauri-bundler': 'patch:enhance' +--- + +Update `nsis_tauri_utils` plugin to `0.3` and use the built-in NSIS download plugin, which reduces the NSIS installer size by 775kb. diff --git a/.changes/drop-nsis-applicationid.md b/.changes/drop-nsis-applicationid.md index 9f1eaa08d..55be7e96c 100644 --- a/.changes/drop-nsis-applicationid.md +++ b/.changes/drop-nsis-applicationid.md @@ -2,4 +2,4 @@ 'tauri-bundler': 'patch:enhance' --- -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 +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. diff --git a/tooling/bundler/src/bundle/windows/nsis.rs b/tooling/bundler/src/bundle/windows/nsis.rs index a550106f8..59501c4b5 100644 --- a/tooling/bundler/src/bundle/windows/nsis.rs +++ b/tooling/bundler/src/bundle/windows/nsis.rs @@ -34,8 +34,8 @@ const NSIS_URL: &str = #[cfg(target_os = "windows")] const NSIS_SHA1: &str = "057e83c7d82462ec394af76c87d06733605543d4"; const NSIS_TAURI_UTILS_URL: &str = - "https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.2.2/nsis_tauri_utils.dll"; -const NSIS_TAURI_UTILS_SHA1: &str = "16DF1D1A5B4D5DF3859447279C55BE36D4109DFB"; + "https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.3.0/nsis_tauri_utils.dll"; +const NSIS_TAURI_UTILS_SHA1: &str = "01E48D6429B48B640230C6CE8F257C84758943AA"; #[cfg(target_os = "windows")] const NSIS_REQUIRED_FILES: &[&str] = &[ diff --git a/tooling/bundler/src/bundle/windows/templates/installer.nsi b/tooling/bundler/src/bundle/windows/templates/installer.nsi index 49f9cd93e..69a46451c 100644 --- a/tooling/bundler/src/bundle/windows/templates/installer.nsi +++ b/tooling/bundler/src/bundle/windows/templates/installer.nsi @@ -459,7 +459,7 @@ Section WebView2 !if "${INSTALLWEBVIEW2MODE}" == "downloadBootstrapper" Delete "$TEMP\MicrosoftEdgeWebview2Setup.exe" DetailPrint "$(webview2Downloading)" - nsis_tauri_utils::download "https://go.microsoft.com/fwlink/p/?LinkId=2124703" "$TEMP\MicrosoftEdgeWebview2Setup.exe" + NSISdl::download "https://go.microsoft.com/fwlink/p/?LinkId=2124703" "$TEMP\MicrosoftEdgeWebview2Setup.exe" Pop $0 ${If} $0 == 0 DetailPrint "$(webview2DownloadSuccess)"