mirror of
https://github.com/moku-project/Moku.git
synced 2026-06-13 09:19:56 -05:00
Fix: Installation Server Kill -> Overwrite Error
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user