Fix: Installation Server Kill -> Overwrite Error

This commit is contained in:
Youwes09
2026-03-27 20:19:36 -05:00
parent 34d997fc9d
commit 6ef0facb89
6 changed files with 427 additions and 217 deletions
+4
View File
@@ -562,6 +562,10 @@
try {
if (IS_WINDOWS) {
// Kill Suwayomi before installing — its JRE DLLs will be locked otherwise
try { await invoke("kill_server"); } catch {}
// Give the process a moment to fully release file handles
await new Promise(res => setTimeout(res, 1500));
// Windows: Tauri updater downloads + runs passive NSIS installer
await invoke("download_and_install_update");
updatePhase = "ready";