Struct tauri_utils::config::UpdaterConfig
source · pub struct UpdaterConfig {
pub active: bool,
pub dialog: bool,
pub endpoints: Option<Vec<UpdaterEndpoint>>,
pub pubkey: String,
pub windows: UpdaterWindowsConfig,
}Expand description
The Updater configuration object.
Fields§
§active: boolWhether the updater is active or not.
dialog: boolDisplay built-in dialog or use event system if disabled.
endpoints: Option<Vec<UpdaterEndpoint>>The updater endpoints. TLS is enforced on production.
The updater URL can contain the following variables:
- {{current_version}}: The version of the app that is requesting the update
- {{target}}: The operating system name (one of
linux,windowsordarwin). - {{arch}}: The architecture of the machine (one of
x86_64,i686,aarch64orarmv7).
Examples
- “https://my.cdn.com/latest.json”: a raw JSON endpoint that returns the latest version and download links for each platform.
- “https://updates.app.dev/{{target}}?version={{current_version}}&arch={{arch}}”: a dedicated API with positional and query string arguments.
pubkey: StringSignature public key.
windows: UpdaterWindowsConfigThe Windows configuration for the updater.
Trait Implementations§
source§impl Clone for UpdaterConfig
impl Clone for UpdaterConfig
source§fn clone(&self) -> UpdaterConfig
fn clone(&self) -> UpdaterConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for UpdaterConfig
impl Debug for UpdaterConfig
source§impl Default for UpdaterConfig
impl Default for UpdaterConfig
source§impl<'de> Deserialize<'de> for UpdaterConfig
impl<'de> Deserialize<'de> for UpdaterConfig
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<UpdaterConfig> for UpdaterConfig
impl PartialEq<UpdaterConfig> for UpdaterConfig
source§fn eq(&self, other: &UpdaterConfig) -> bool
fn eq(&self, other: &UpdaterConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.