Enum tauri_utils::config::WebviewInstallMode
source · [−]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: boolInstructs 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: boolInstructs 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: boolInstructs 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: PathBufThe 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
sourceimpl Clone for WebviewInstallMode
impl Clone for WebviewInstallMode
sourcefn clone(&self) -> WebviewInstallMode
fn clone(&self) -> WebviewInstallMode
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more