Skip to content
Tauri 中文网

@tauri-apps/plugin-updater

  • Resource

new Update(metadata): Update
ParameterType
metadataUpdateMetadata

Update

Resource.constructor

Source: undefined

PropertyTypeDescriptionDefined in
availablebooleanDeprecated This is always true, check if the return value is null instead when using checkSource: undefined
body?string-Source: undefined
currentVersionstring-Source: undefined
date?string-Source: undefined
rawJsonRecord<string, unknown>-Source: undefined
versionstring-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

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

Promise<void>

Source: undefined

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

Downloads the updater package and installs it

ParameterType
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

PropertyTypeDescriptionDefined in
allowDowngrades?booleanAllow downgrades to previous versions by not checking if the current version is greater than the available version.Source: undefined
headers?HeadersInitRequest headersSource: undefined
proxy?stringA proxy url to be used when checking and downloading updates.Source: undefined
target?stringTarget identifier for the running application. This is sent to the backend.Source: undefined
timeout?numberTimeout in millisecondsSource: undefined

Options used when downloading an update

PropertyTypeDescriptionDefined in
headers?HeadersInitRequest headersSource: undefined
timeout?numberTimeout in millisecondsSource: 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

ParameterType
options?CheckOptions

Promise<Update | null>

Source: undefined


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