fix(updater): check ShellExecuteW results (#3516)

* fix(updater): check `ShellExecuteW` results

* document the exit on windows
This commit is contained in:
Tony
2026-07-27 16:38:50 +08:00
committed by GitHub
parent abc903c240
commit 622f02bf21
5 changed files with 40 additions and 5 deletions
+1
View File
@@ -69,6 +69,7 @@ import { relaunch } from '@tauri-apps/plugin-process'
const update = await check()
if (update) {
await update.downloadAndInstall()
// Relaunch the app on macOS and Linux to run the newly install version
await relaunch()
}
```