Struct tauri_utils::config::WindowsConfig
source · [−]pub struct WindowsConfig {
pub digest_algorithm: Option<String>,
pub certificate_thumbprint: Option<String>,
pub timestamp_url: Option<String>,
pub tsp: bool,
pub webview_install_mode: WebviewInstallMode,
pub webview_fixed_runtime_path: Option<PathBuf>,
pub allow_downgrades: bool,
pub wix: Option<WixConfig>,
}
Expand description
Windows bundler configuration.
Fields
digest_algorithm: Option<String>
Specifies the file digest algorithm to use for creating file signatures. Required for code signing. SHA-256 is recommended.
certificate_thumbprint: Option<String>
Specifies the SHA1 hash of the signing certificate.
timestamp_url: Option<String>
Server to use during timestamping.
tsp: bool
Whether to use Time-Stamp Protocol (TSP, a.k.a. RFC 3161) for the timestamp server. Your code signing provider may use a TSP timestamp server, like e.g. SSL.com does. If so, enable TSP by setting to true.
webview_install_mode: WebviewInstallMode
The installation mode for the Webview2 runtime.
webview_fixed_runtime_path: Option<PathBuf>
Path to the webview fixed runtime to use. Overwrites Self::webview_install_mode
if set.
Will be removed in v2, prefer the Self::webview_install_mode
option.
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.
allow_downgrades: bool
Validates a second app installation, blocking the user from installing an older version if set to false
.
For instance, if 1.2.1
is installed, the user won’t be able to install app version 1.2.0
or 1.1.5
.
The default value of this flag is true
.
wix: Option<WixConfig>
Configuration for the MSI generated with WiX.
Trait Implementations
sourceimpl Clone for WindowsConfig
impl Clone for WindowsConfig
sourcefn clone(&self) -> WindowsConfig
fn clone(&self) -> WindowsConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WindowsConfig
impl Debug for WindowsConfig
sourceimpl Default for WindowsConfig
impl Default for WindowsConfig
sourceimpl<'de> Deserialize<'de> for WindowsConfig
impl<'de> Deserialize<'de> for WindowsConfig
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<WindowsConfig> for WindowsConfig
impl PartialEq<WindowsConfig> for WindowsConfig
sourcefn eq(&self, other: &WindowsConfig) -> bool
fn eq(&self, other: &WindowsConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WindowsConfig) -> bool
fn ne(&self, other: &WindowsConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for WindowsConfig
impl Serialize for WindowsConfig
impl Eq for WindowsConfig
impl StructuralEq for WindowsConfig
impl StructuralPartialEq for WindowsConfig
Auto Trait Implementations
impl RefUnwindSafe for WindowsConfig
impl Send for WindowsConfig
impl Sync for WindowsConfig
impl Unpin for WindowsConfig
impl UnwindSafe for WindowsConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more