pub struct WindowsSettings {
pub digest_algorithm: Option<String>,
pub certificate_thumbprint: Option<String>,
pub timestamp_url: Option<String>,
pub tsp: bool,
pub wix: Option<WixSettings>,
pub nsis: Option<NsisSettings>,
pub icon_path: PathBuf,
pub webview_install_mode: WebviewInstallMode,
pub allow_downgrades: bool,
pub sign_command: Option<CustomSignCommandSettings>,
}
Expand description
The Windows bundle settings.
Fields§
§digest_algorithm: Option<String>
The file digest algorithm to use for creating file signatures. Required for code signing. SHA-256 is recommended.
certificate_thumbprint: Option<String>
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.
wix: Option<WixSettings>
WiX configuration.
nsis: Option<NsisSettings>
Nsis configuration.
icon_path: PathBuf
BundleSettings::icon
field and make sure a .ico
icon exists instead.The path to the application icon. Defaults to ./icons/icon.ico
.
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
.
sign_command: Option<CustomSignCommandSettings>
Specify a custom command to sign the binaries.
This command needs to have a %1
in it which is just a placeholder for the binary path,
which we will detect and replace before calling the command.
Example:
sign-cli --arg1 --arg2 %1
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 WindowsSettings
impl Clone for WindowsSettings
Source§fn clone(&self) -> WindowsSettings
fn clone(&self) -> WindowsSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WindowsSettings
impl Debug for WindowsSettings
Auto Trait Implementations§
impl Freeze for WindowsSettings
impl RefUnwindSafe for WindowsSettings
impl Send for WindowsSettings
impl Sync for WindowsSettings
impl Unpin for WindowsSettings
impl UnwindSafe for WindowsSettings
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian()
.