Skip to content

@tauri-apps/plugin-updater

Defined in: plugins/updater/guest-js/index.ts:58

  • Resource

new Update(metadata): Update;

Defined in: plugins/updater/guest-js/index.ts:69

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 plugins/updater/guest-js/index.ts:61
body? string - plugins/updater/guest-js/index.ts:65
currentVersion string - plugins/updater/guest-js/index.ts:62
date? string - plugins/updater/guest-js/index.ts:64
rawJson Record<string, unknown> - plugins/updater/guest-js/index.ts:66
version string - plugins/updater/guest-js/index.ts:63

get rid(): number;

Defined in: @tauri-apps/api/core.d.ts:183

number

Resource.rid

close(): Promise<void>;

Defined in: plugins/updater/guest-js/index.ts:129

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>;

Defined in: plugins/updater/guest-js/index.ts:80

Download the updater package

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

Promise<void>

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

Defined in: plugins/updater/guest-js/index.ts:113

Downloads the updater package and installs it

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

Promise<void>

install(): Promise<void>;

Defined in: plugins/updater/guest-js/index.ts:98

Install downloaded updater package

Promise<void>

Defined in: plugins/updater/guest-js/index.ts:8

Options used when checking for updates

Property Type Description Defined in
allowDowngrades? boolean Allow downgrades to previous versions by not checking if the current version is greater than the available version. plugins/updater/guest-js/index.ts:28
headers? HeadersInit Request headers plugins/updater/guest-js/index.ts:12
proxy? string A proxy url to be used when checking and downloading updates. plugins/updater/guest-js/index.ts:20
target? string Target identifier for the running application. This is sent to the backend. plugins/updater/guest-js/index.ts:24
timeout? number Timeout in milliseconds plugins/updater/guest-js/index.ts:16

Defined in: plugins/updater/guest-js/index.ts:32

Options used when downloading an update

Property Type Description Defined in
headers? HeadersInit Request headers plugins/updater/guest-js/index.ts:36
timeout? number Timeout in milliseconds plugins/updater/guest-js/index.ts:40

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

Defined in: plugins/updater/guest-js/index.ts:53

Updater download event

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

Defined in: plugins/updater/guest-js/index.ts:136

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

Parameter Type
options? CheckOptions

Promise<Update | null>


© 2026 Tauri Contributors. CC-BY / MIT