Skip to main content

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#

updater.ts:14

Functions#

checkUpdate#

checkUpdate(): Promise<UpdateResult>

Checks if an update is available.

Returns#

Promise<UpdateResult>

Promise resolving to the update status.

Defined in#

updater.ts:89


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.

Defined in#

updater.ts:37