pub enum WebviewInstallMode {
    Skip,
    DownloadBootstrapper {
        silent: bool,
    },
    EmbedBootstrapper {
        silent: bool,
    },
    OfflineInstaller {
        silent: bool,
    },
    FixedRuntime {
        path: PathBuf,
    },
}
Expand description

Install modes for the Webview2 runtime. Note that for the updater bundle Self::DownloadBootstrapper is used.

For more information see https://tauri.app/v1/guides/building/windows.

Variants

Skip

Do not install the Webview2 as part of the Windows Installer.

DownloadBootstrapper

Fields

silent: bool

Instructs the installer to run the bootstrapper in silent mode. Defaults to true.

Download the bootstrapper and run it. Requires internet connection. Results in a smaller installer size, but is not recommended on Windows 7.

EmbedBootstrapper

Fields

silent: bool

Instructs the installer to run the bootstrapper in silent mode. Defaults to true.

Embed the bootstrapper and run it. Requires internet connection. Increases the installer size by around 1.8MB, but offers better support on Windows 7.

OfflineInstaller

Fields

silent: bool

Instructs the installer to run the installer in silent mode. Defaults to true.

Embed the offline installer and run it. Does not require internet connection. Increases the installer size by around 127MB.

FixedRuntime

Fields

path: PathBuf

The path to the fixed runtime to use.

The fixed version can be downloaded on the official website. The .cab file must be extracted to a folder and this folder path must be defined on this field.

Embed a fixed webview2 version and use it at runtime. Increases the installer size by around 180MB.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.