feat: 支持忽略更新

This commit is contained in:
cc authored and xuncha committed 2026-02-02 22:59:30 +08:00
1 parent cb37f534ac
commit 123a088a39
9 files changed
+96 -2

No files matched your search

+1
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
}