mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-05-07 12:26:41 +02:00
fix(updater): pass /NS and /UPDATE to nsis installer to disable creating shortcuts on updates (#1162)
* fix(updater): pass `/NS` to nsis installer to disable creating shortcuts on updates ref: tauri-apps/tauri#9395 * add `/UPDATE` * move args to function * update updater test config * revert /R --------- Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"updater": "patch"
|
||||
---
|
||||
|
||||
Fix NSIS updater creating new shortcuts on update.
|
||||
@@ -556,6 +556,8 @@ impl Update {
|
||||
match updater_type {
|
||||
WindowsUpdaterType::Nsis => {
|
||||
installer_args.extend(install_mode.nsis_args().iter().map(OsStr::new));
|
||||
installer_args.push(OsStr::new("/NS"));
|
||||
installer_args.push(OsStr::new("/UPDATE"));
|
||||
}
|
||||
WindowsUpdaterType::Msi => {
|
||||
installer_args.extend(install_mode.msiexec_args().iter().map(OsStr::new));
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
"icons/icon.ico"
|
||||
],
|
||||
"windows": {
|
||||
"wix": {
|
||||
"skipWebviewInstall": true
|
||||
"webviewInstallMode": {
|
||||
"type": "skip"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user