Ir al contenido

@tauri-apps/plugin-updater

Esta página aún no está disponible en tu idioma.

  • Resource

new Update(metadata): Update
Parameter Type
metadata UpdateMetadata

Update

Resource.constructor

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

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#L69
body? string - Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L73
currentVersion string - Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L70
date? string - Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L72
rawJson Record<string, unknown> - Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L74
version string - Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L71

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#L138

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

Download the updater package

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

Promise<void>

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

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

Downloads the updater package and installs it

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

Promise<void>

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

install(options?): Promise<void>

Install downloaded updater package

Parameter Type
options? InstallOptions

Promise<void>

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

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. Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L28
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

Options used when downloading an update

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#L36
timeout? number Timeout in milliseconds Source: 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#L61

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

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

Parameter Type
options? CheckOptions

Promise<Update | null>

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


© 2026 Tauri Contributors. CC-BY / MIT