Customize the auto updater flow.
This package is also accessible with window.__TAURI__.updater when tauri.conf.json > build > withGlobalTauri is set to true.
Interfaces#
Type aliases#
UpdateStatus#
Ƭ UpdateStatus: "PENDING" | "ERROR" | "DONE" | "UPTODATE"
Defined in#
Functions#
checkUpdate#
▸ checkUpdate(): Promise<UpdateResult>
Checks if an update is available.
Returns#
Promise<UpdateResult>
Promise resolving to the update status.
Defined in#
installUpdate#
▸ installUpdate(): Promise<void>
Install the update if there's one available.
Returns#
Promise<void>
A promise indicating the success or failure of the operation.