pub struct MacOSNativeSignNotarizeConfig {
pub ids: Option<Vec<String>>,
pub skip: Option<StringOrBool>,
pub enabled: Option<StringOrBool>,
pub skip_inverts_enabled: bool,
pub use_: Option<MacOSNativeArtifactKind>,
pub sign: Option<MacOSNativeSignConfig>,
pub notarize: Option<MacOSNativeNotarizeConfig>,
}Expand description
Native macOS signing and notarization via codesign + xcrun notarytool.
Fields§
§ids: Option<Vec<String>>Build IDs to filter. Default: project name.
skip: Option<StringOrBool>Skip this configuration. Accepts bool or template string.
Replaces enabled: with the canonical skip:. Imported
configs may continue to write enabled: — the deserializer
inverts it into skip: so both spellings work.
enabled: Option<StringOrBool>Back-compat enabled: alias (opt-in, default false). Inverted into
Self::skip at deserialize time. Surfaced here only so the
generated JSON schema documents the field; always None at runtime.
See MacOSSignNotarizeConfig::enabled.
skip_inverts_enabled: booltrue when Self::skip holds a templated enabled: value to be
rendered verbatim and NEGATED at evaluation. See
MacOSSignNotarizeConfig::skip_inverts_enabled.
use_: Option<MacOSNativeArtifactKind>Artifact type to sign and notarize: dmg (default) or pkg.
Anodizer-original (signs
binaries directly via rcodesign). Constrained to a typed enum at
parse time so an unsupported value (zip, app, etc.) fails fast
instead of producing a silent no-op signing pipe.
sign: Option<MacOSNativeSignConfig>Native signing configuration (Keychain).
notarize: Option<MacOSNativeNotarizeConfig>Native notarization configuration (xcrun notarytool).
Implementations§
Source§impl MacOSNativeSignNotarizeConfig
impl MacOSNativeSignNotarizeConfig
Sourcepub fn should_skip(
&self,
render: impl Fn(&str) -> Result<String>,
) -> Result<bool>
pub fn should_skip( &self, render: impl Fn(&str) -> Result<String>, ) -> Result<bool>
Whether this native entry should be SKIPPED. Mirrors
MacOSSignNotarizeConfig::should_skip: renders the Self::skip
template, negates when it came from a templated enabled:, and
FAILS CLOSED (propagates Err) on a render failure.
Source§impl MacOSNativeSignNotarizeConfig
impl MacOSNativeSignNotarizeConfig
Sourcepub const DEFAULT_USE: MacOSNativeArtifactKind = MacOSNativeArtifactKind::Dmg
pub const DEFAULT_USE: MacOSNativeArtifactKind = MacOSNativeArtifactKind::Dmg
Default use: selector. Anodize-original — no native
notarize. DMG is the canonical signed-app distribution format
for macOS releases; PKG opt-in handles installers.
Sourcepub fn resolved_use(&self) -> MacOSNativeArtifactKind
pub fn resolved_use(&self) -> MacOSNativeArtifactKind
Resolve the use: selector, falling back to Self::DEFAULT_USE.
Trait Implementations§
Source§impl Clone for MacOSNativeSignNotarizeConfig
impl Clone for MacOSNativeSignNotarizeConfig
Source§fn clone(&self) -> MacOSNativeSignNotarizeConfig
fn clone(&self) -> MacOSNativeSignNotarizeConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for MacOSNativeSignNotarizeConfig
impl Default for MacOSNativeSignNotarizeConfig
Source§fn default() -> MacOSNativeSignNotarizeConfig
fn default() -> MacOSNativeSignNotarizeConfig
Source§impl<'de> Deserialize<'de> for MacOSNativeSignNotarizeConfig
impl<'de> Deserialize<'de> for MacOSNativeSignNotarizeConfig
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl JsonSchema for MacOSNativeSignNotarizeConfig
impl JsonSchema for MacOSNativeSignNotarizeConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more