fix(desktop): avoid relaunching without installing updates (#23806)

This commit is contained in:
Brendan Allan
2026-04-24 13:27:36 +08:00
committed by GitHub
parent 3bfe6a1ef6
commit 2e156b8990
7 changed files with 34 additions and 19 deletions

View File

@@ -49,11 +49,11 @@ export type Platform = {
/** Storage mechanism, defaults to localStorage */
storage?: (name?: string) => SyncStorage | AsyncStorage
/** Check for updates (Tauri only) */
/** Check for a downloadable desktop update */
checkUpdate?(): Promise<UpdateInfo>
/** Install updates (Tauri only) */
update?(): Promise<void>
/** Install the downloaded update using the platform restart flow */
updateAndRestart?(): Promise<void>
/** Fetch override */
fetch?: typeof fetch