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 allow_downgrades: bool,
pub wix: Option<WixConfig>,
pub nsis: Option<NsisConfig>,
pub sign_command: Option<CustomSignCommandConfig>,
}
Expand description
Windows bundler configuration.
See more: https://v2.tauri.app/reference/config/#windowsconfig
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.
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.
nsis: Option<NsisConfig>
Configuration for the installer generated with NSIS.
sign_command: Option<CustomSignCommandConfig>
Specify a custom command to sign the binaries.
This command needs to have a %1
in args which is just a placeholder for the binary path,
which we will detect and replace before calling the command.
By Default we use signtool.exe
which can be found only on Windows so
if you are on another platform and want to cross-compile and sign you will
need to use another tool like osslsigncode
.
Trait Implementations§
Source§impl Clone for WindowsConfig
impl Clone for WindowsConfig
Source§fn clone(&self) -> WindowsConfig
fn clone(&self) -> WindowsConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WindowsConfig
impl Debug for WindowsConfig
Source§impl Default for WindowsConfig
impl Default for WindowsConfig
Source§impl<'de> Deserialize<'de> for WindowsConfig
impl<'de> Deserialize<'de> for WindowsConfig
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 WindowsConfig
impl PartialEq for WindowsConfig
Source§impl Serialize for WindowsConfig
impl Serialize for WindowsConfig
impl Eq for WindowsConfig
impl StructuralPartialEq for WindowsConfig
Auto Trait Implementations§
impl Freeze for WindowsConfig
impl RefUnwindSafe for WindowsConfig
impl Send for WindowsConfig
impl Sync for WindowsConfig
impl Unpin for WindowsConfig
impl UnwindSafe for WindowsConfig
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.