Skip to main content

Crate tauri_plugin_updater

Crate tauri_plugin_updater 

Source
Expand description

In-app updates for Tauri applications.

Supported platforms: Windows, Linux and macOS.

§Cargo features

  • zip (enabled by default): Adds support for compressed updater bundles from Tauri v1.
  • rustls-tls (enabled by default): Enables TLS functionality provided by rustls.
  • native-tls: Enables TLS functionality provided by native-tls.
  • native-tls-vendored: Enables the vendored feature of native-tls.
  • system-proxy (enabled by default): Use Windows and macOS system proxy settings automatically.

Structs§

Builder
Builder for the updater plugin.
Config
Updater configuration.
ReleaseManifestPlatform
The update information of a single platform in the update manifest.
RemoteRelease
Information about a release returned by the remote update server.
Update
An update announced by the remote server, returned by Updater::check.
Updater
Checks the configured endpoints for an application update.
UpdaterBuilder
Builder for an Updater instance.

Enums§

Error
All errors that can occur while running the updater.
Installer
The kind of bundle the running application was installed from.
RemoteReleaseInner
The platform specific data of a RemoteRelease, in either of the two supported shapes.

Traits§

UpdaterExt
Extensions to tauri::App, tauri::AppHandle, tauri::WebviewWindow, tauri::Webview and tauri::Window to access the updater APIs.

Functions§

extract_path_from_executable
Resolves the path the update must be installed to from the path of the application executable.
target
Gets the base target string used by the updater. If bundle type is available it will be added to this string when selecting the download URL and signature. tauri::utils::platform::bundle_type method is used to obtain current bundle type.

Type Aliases§

OnBeforeExit
Function executed right before the Windows installer is spawned and the app exits. See UpdaterBuilder::on_before_exit.
OnBeforeRequest
Function that customizes the reqwest client builder used for the updater requests. See UpdaterBuilder::configure_client.
Result
A Result alias whose error type is the updater Error.
VersionComparator
Function that decides whether a remote release must be installed.