feat: 支持忽略更新

This commit is contained in:
cc
2026-02-01 20:50:01 +08:00
parent 0054509ef2
commit 1f0f824b01
9 changed files with 96 additions and 2 deletions

View File

@@ -32,6 +32,7 @@ export interface ElectronAPI {
getVersion: () => Promise<string>
checkForUpdates: () => Promise<{ hasUpdate: boolean; version?: string; releaseNotes?: string }>
downloadAndInstall: () => Promise<void>
ignoreUpdate: (version: string) => Promise<{ success: boolean }>
onDownloadProgress: (callback: (progress: number) => void) => () => void
onUpdateAvailable: (callback: (info: { version: string; releaseNotes: string }) => void) => () => void
}