Skip to content

@tauri-apps/plugin-updater

Source: undefined

  • Resource

new Update(metadata): Update;

Source: undefined

Parameter Type
metadata UpdateMetadata

Update

Resource.constructor
Property Type Description Defined in
available boolean Deprecated This is always true, check if the return value is null instead when using check Source: undefined
body? string - Source: undefined
currentVersion string - Source: undefined
date? string - Source: undefined
rawJson Record<string, unknown> - Source: undefined
version string - Source: undefined

get rid(): number;

Source: undefined

number

Resource.rid

close(): Promise<void>;

Source: undefined

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.

Promise<void>

Resource.close

download(onEvent?, options?): Promise<void>;

Source: undefined

Download the updater package. Call install later to install it

Parameter Type
onEvent? (progress) => void
options? DownloadOptions

Promise<void>

downloadAndInstall(onEvent?, options?): Promise<void>;

Source: undefined

Downloads the updater package and installs it

  • 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
Parameter Type
onEvent? (progress) => void
options? DownloadOptions & InstallOptions

Promise<void>

install(options?): Promise<void>;

Source: undefined

Install downloaded updater package. Must be called after download.

  • 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
Parameter Type
options? InstallOptions

Promise<void>

Source: undefined

Options used when checking for updates

Property Type Description Defined in
headers? HeadersInit Request headers Source: undefined
proxy? string A proxy url to be used when checking and downloading updates. Source: undefined
target? string Target identifier for the running application. This is sent to the backend. Source: undefined
timeout? number Timeout in milliseconds Source: undefined

Source: undefined

Options used when downloading an update

Property Type Description Defined in
headers? HeadersInit Request headers Source: undefined
timeout? number Timeout in milliseconds Source: undefined

type DownloadEvent =
| {
data: {
contentLength?: number;
};
event: "Started";
}
| {
data: {
chunkLength: number;
};
event: "Progress";
}
| {
event: "Finished";
};

Source: undefined

Updater download event

function check(options?): Promise<Update | null>;

Source: undefined

Check for updates, resolves to null if no updates are available

Parameter Type
options? CheckOptions

Promise<Update | null>


© 2026 Tauri Contributors. CC-BY / MIT