@tauri-apps/plugin-updater
Classes
Update
Extends
Resource
Constructors
new Update()
Parameters
Parameter | Type |
---|---|
metadata | UpdateMetadata |
Returns
Overrides
Resource.constructor
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L50
Properties
Accessors
rid
Returns
number
Source: undefined
Methods
close()
Returns
Promise
<void
>
Overrides
Resource.close
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L101
download()
Download the updater package
Parameters
Parameter | Type |
---|---|
onEvent ? | (progress ) => void |
Returns
Promise
<void
>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L60
downloadAndInstall()
Downloads the updater package and installs it
Parameters
Parameter | Type |
---|---|
onEvent ? | (progress ) => void |
Returns
Promise
<void
>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L88
install()
Install downloaded updater package
Returns
Promise
<void
>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L73
Interfaces
CheckOptions
Options used to check for updates
Properties
Type Aliases
DownloadEvent
Updater download event
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L37
Functions
check()
Check for updates, resolves to null
if no updates are available
Parameters
Parameter | Type |
---|---|
options ? | CheckOptions |
Returns
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L108
© 2024 Tauri Contributors. CC-BY / MIT