Skip to content
Tauri

@tauri-apps/plugin-updater

  • Resource

new Update(metadata): Update
ParameterType
metadataUpdateMetadata

Update

Resource.constructor

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L69

PropertyTypeDescriptionDefined in
availablebooleanDeprecated This is always true, check if the return value is null instead when using checkSource: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L61
body?string-Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L65
currentVersionstring-Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L62
date?string-Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L64
rawJsonRecord<string, unknown>-Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L66
versionstring-Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L63

get rid(): number

number

Resource.rid

Source: undefined

close(): Promise<void>

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

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L129

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

Download the updater package

ParameterType
onEvent?(progress) => void
options?DownloadOptions

Promise<void>

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L80

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

Downloads the updater package and installs it

ParameterType
onEvent?(progress) => void
options?DownloadOptions

Promise<void>

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L113

install(): Promise<void>

Install downloaded updater package

Promise<void>

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L98

Options used when checking for updates

PropertyTypeDescriptionDefined in
allowDowngrades?booleanAllow downgrades to previous versions by not checking if the current version is greater than the available version.Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L28
headers?HeadersInitRequest headersSource: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L12
proxy?stringA 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?stringTarget 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?numberTimeout in millisecondsSource: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L16

Options used when downloading an update

PropertyTypeDescriptionDefined in
headers?HeadersInitRequest headersSource: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L36
timeout?numberTimeout in millisecondsSource: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L40

type DownloadEvent: object | object | object;

Updater download event

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L53

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

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

ParameterType
options?CheckOptions

Promise<Update | null>

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L136


© 2025 Tauri Contributors. CC-BY / MIT