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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.