mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-24 21:40:48 +02:00
feat(updater): backport changes from tauri v1 (#405)
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"updater": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Implement passive mode on NSIS and automatically restart after NSIS update.
|
||||||
@@ -736,15 +736,11 @@ fn copy_files_and_run<R: Read + Seek>(
|
|||||||
// If it's an `exe` we expect an installer not a runtime.
|
// If it's an `exe` we expect an installer not a runtime.
|
||||||
if found_path.extension() == Some(OsStr::new("exe")) {
|
if found_path.extension() == Some(OsStr::new("exe")) {
|
||||||
// Run the EXE
|
// Run the EXE
|
||||||
let mut installer = Command::new(found_path);
|
Command::new(found_path)
|
||||||
if tauri::utils::config::WindowsUpdateInstallMode::Quiet
|
.args(config.tauri.bundle.updater.windows.install_mode.nsis_args())
|
||||||
== config.tauri.bundle.updater.windows.install_mode
|
.args(&updater_config.installer_args)
|
||||||
{
|
.spawn()
|
||||||
installer.arg("/S");
|
.expect("installer failed to start");
|
||||||
}
|
|
||||||
installer.args(&updater_config.installer_args);
|
|
||||||
|
|
||||||
installer.spawn().expect("installer failed to start");
|
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
} else if found_path.extension() == Some(OsStr::new("msi")) {
|
} else if found_path.extension() == Some(OsStr::new("msi")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user