@tauri-apps/plugin-updater
Classes
Section titled “Classes”Update
Section titled “Update”Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L62
Extends
Section titled “Extends”Resource
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Update(metadata): Update;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L73
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
metadata |
UpdateMetadata |
Returns
Section titled “Returns”Overrides
Section titled “Overrides”Resource.constructorProperties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
available |
boolean |
Deprecated This is always true, check if the return value is null instead when using check |
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L65 |
body? |
string |
- | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L69 |
currentVersion |
string |
- | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L66 |
date? |
string |
- | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L68 |
rawJson |
Record<string, unknown> |
- | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L70 |
version |
string |
- | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L67 |
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get rid(): number;Source: undefined
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”Resource.ridMethods
Section titled “Methods”close()
Section titled “close()”close(): Promise<void>;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L148
Destroys and cleans up this resource from memory. You should not call any method on this object anymore and should drop any reference to it.
Returns
Section titled “Returns”Promise<void>
Overrides
Section titled “Overrides”Resource.closedownload()
Section titled “download()”download(onEvent?, options?): Promise<void>;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L84
Download the updater package. Call install later to install it
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
onEvent? |
(progress) => void |
options? |
DownloadOptions |
Returns
Section titled “Returns”Promise<void>
downloadAndInstall()
Section titled “downloadAndInstall()”downloadAndInstall(onEvent?, options?): Promise<void>;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L132
Downloads the updater package and installs it
Platform-specific:
Section titled “Platform-specific:”- Windows: This function exits the app after launching the updater installer successfully
- macOS / Linux: You need to relaunch the app to run the newly install version
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
onEvent? |
(progress) => void |
options? |
DownloadOptions & InstallOptions |
Returns
Section titled “Returns”Promise<void>
install()
Section titled “install()”install(options?): Promise<void>;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L109
Install downloaded updater package. Must be called after download.
Platform-specific:
Section titled “Platform-specific:”- Windows: This function exits the app after launching the updater installer successfully
- macOS / Linux: You need to relaunch the app to run the newly install version
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options? |
InstallOptions |
Returns
Section titled “Returns”Promise<void>
Interfaces
Section titled “Interfaces”CheckOptions
Section titled “CheckOptions”Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L8
Options used when checking for updates
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
headers? |
HeadersInit |
Request headers | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L12 |
proxy? |
string |
A proxy url to be used when checking and downloading updates. | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L20 |
target? |
string |
Target identifier for the running application. This is sent to the backend. | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L24 |
timeout? |
number |
Timeout in milliseconds | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L16 |
DownloadOptions
Section titled “DownloadOptions”Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L28
Options used when downloading an update
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
headers? |
HeadersInit |
Request headers | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L32 |
timeout? |
number |
Timeout in milliseconds | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L36 |
Type Aliases
Section titled “Type Aliases”DownloadEvent
Section titled “DownloadEvent”type DownloadEvent = | { data: { contentLength?: number; }; event: "Started";} | { data: { chunkLength: number; }; event: "Progress";} | { event: "Finished";};Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L57
Updater download event
Functions
Section titled “Functions”check()
Section titled “check()”function check(options?): Promise<Update | null>;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L155
Check for updates, resolves to null if no updates are available
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options? |
CheckOptions |
Returns
Section titled “Returns”© 2026 Tauri Contributors. CC-BY / MIT