mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-28 17:38:53 +02:00
fix(updater): check ShellExecuteW results (#3516)
* fix(updater): check `ShellExecuteW` results * document the exit on windows
This commit is contained in:
@@ -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()
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user