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://v2.tauri.app/distribute/windows-installer/#webview2-installation-options.
Variants§
Skip
Do not install the Webview2 as part of the Windows Installer.
DownloadBootstrapper
Download the bootstrapper and run it. Requires an internet connection. Results in a smaller installer size, but is not recommended on Windows 7.
Fields
EmbedBootstrapper
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.
Fields
OfflineInstaller
Embed the offline installer and run it. Does not require an internet connection. Increases the installer size by around 127MB.
FixedRuntime
Embed a fixed webview2 version and use it at runtime. Increases the installer size by around 180MB.
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.
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§impl Serialize for WebviewInstallMode
impl Serialize for WebviewInstallMode
impl Eq for WebviewInstallMode
impl StructuralPartialEq for WebviewInstallMode
Auto Trait Implementations§
impl Freeze for WebviewInstallMode
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.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.