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
Download the bootstrapper and run it. Requires an internet connection. Results in a smaller installer size, but is not recommended on Windows 7.
EmbedBootstrapper
Fields
Embed the bootstrapper and run it. Requires an internet connection. Increases the installer size by around 1.8MB, but offers better support on Windows 7.
OfflineInstaller
Embed the offline installer and run it. Does not require an 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§
source§impl Clone for WebviewInstallMode
impl Clone for WebviewInstallMode
source§fn clone(&self) -> WebviewInstallMode
fn clone(&self) -> WebviewInstallMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WebviewInstallMode
impl Debug for WebviewInstallMode
source§impl Default for WebviewInstallMode
impl Default for WebviewInstallMode
source§impl<'de> Deserialize<'de> for WebviewInstallMode
impl<'de> Deserialize<'de> for WebviewInstallMode
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>,
source§impl PartialEq for WebviewInstallMode
impl PartialEq for WebviewInstallMode
source§fn eq(&self, other: &WebviewInstallMode) -> bool
fn eq(&self, other: &WebviewInstallMode) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for WebviewInstallMode
impl Serialize for WebviewInstallMode
impl Eq for WebviewInstallMode
impl StructuralEq for WebviewInstallMode
impl StructuralPartialEq for WebviewInstallMode
Auto Trait Implementations§
impl RefUnwindSafe for WebviewInstallMode
impl Send for WebviewInstallMode
impl Sync for WebviewInstallMode
impl Unpin for WebviewInstallMode
impl UnwindSafe for WebviewInstallMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.