client app tauri updater #2966

This commit is contained in:
lloydzhou
2024-10-11 11:29:22 +08:00
parent c5074f0aa4
commit 2eebfcf6fe
6 changed files with 48 additions and 4 deletions

7
app/global.d.ts vendored
View File

@@ -26,6 +26,13 @@ declare interface Window {
isPermissionGranted(): Promise<boolean>;
sendNotification(options: string | Options): void;
};
updater: {
checkUpdate(): Promise<UpdateResult>;
installUpdate(): Promise<void>;
onUpdaterEvent(
handler: (status: UpdateStatusResult) => void,
): Promise<UnlistenFn>;
};
http: {
fetch<T>(
url: string,