Skip to content

@tauri-apps/plugin-updater

  • Resource

new Update(metadata): Update
Parameter Type
metadata UpdateMetadata

Update

Resource.constructor

Source: undefined

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

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: undefined

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

Download the updater package

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

Promise<void>

Source: undefined

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

Downloads the updater package and installs it

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

Promise<void>

Source: undefined

install(): Promise<void>

Install downloaded updater package

Promise<void>

Source: undefined

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: undefined
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

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

Updater download event

Source: undefined

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: undefined


Tauri 中文网 - 粤ICP备13048890号
Nodejs.cn 旗下网站