Skip to main content

Crate tauri_updater_private

Crate tauri_updater_private 

Source
Expand description

§tauri-updater-private

Thin wrapper over the official tauri-plugin-updater that enables in-app updates for Tauri 2 applications distributed from private GitHub repositories.

It configures the official updater plugin with an Authorization: Bearer <token> header, embedded into the binary at build time from the UPDATER_GH_TOKEN environment variable, plus an Accept: application/octet-stream header for private-repo asset downloads. The frontend keeps using the official @tauri-apps/plugin-updater JS API unchanged.

See DESIGN.md for the full design rationale.

Re-exports§

pub use tauri_plugin_updater;

Structs§

TauriUpdaterPrivateBuilder
Builder for apps that supply the token explicitly (tests, non-CI builds) instead of embedding it from the compile-time environment.

Enums§

Error
Errors returned when presetting the Authorization header fails.

Functions§

updater_builder
Returns the official updater tauri_plugin_updater::Builder with the Authorization: Bearer <token> header preset from the compile-time UPDATER_GH_TOKEN, plus Accept: application/octet-stream.

Type Aliases§

Result
Convenience alias used by this crate’s public API.