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
commit 2e156b8990
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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