fix: Stop core before install update

This commit is contained in:
MystiPanda
2023-12-05 15:01:15 +08:00
parent 4909a11896
commit 84131a71c9
2 changed files with 9 additions and 2 deletions

View File

@@ -105,6 +105,10 @@ fn main() -> std::io::Result<()> {
api::process::kill_children();
app_handle.exit(0);
}
tauri::RunEvent::Updater(tauri::UpdaterEvent::Downloaded) => {
resolve::resolve_reset();
api::process::kill_children();
}
#[cfg(target_os = "macos")]
tauri::RunEvent::WindowEvent { label, event, .. } => {
use tauri::Manager;