feat: 支持忽略更新
This commit is contained in:
1 parent
cb37f534ac
commit
123a088a39
9 files changed
+96
-2
No files matched your search
Vendored
+1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user