pub struct DmgConfig {
pub id: Option<String>,
pub ids: Option<Vec<String>>,
pub name: Option<String>,
pub extra_files: Option<Vec<ExtraFileSpec>>,
pub templated_extra_files: Option<Vec<TemplatedExtraFile>>,
pub replace: Option<bool>,
pub mod_timestamp: Option<String>,
pub skip: Option<StringOrBool>,
pub use_: Option<String>,
pub amd64_variant: Option<Amd64Variant>,
pub if_condition: Option<String>,
pub volume_name: Option<String>,
}Fields§
§id: Option<String>Unique identifier for this DMG config.
ids: Option<Vec<String>>Build IDs to include. Empty means all builds.
name: Option<String>Output DMG filename (supports templates).
extra_files: Option<Vec<ExtraFileSpec>>Additional files to include in the DMG (glob or {glob, name_template}).
templated_extra_files: Option<Vec<TemplatedExtraFile>>Extra files whose contents are rendered through the template engine before inclusion.
Unlike extra_files which copy as-is, template variables like {{ Tag }} are expanded.
Conditional-skip gate.
replace: Option<bool>Remove source archives from artifacts, keeping only DMG.
mod_timestamp: Option<String>Output timestamp for reproducible builds.
skip: Option<StringOrBool>Skip this DMG config. Accepts bool or template string.
use_: Option<String>Which artifact type to package: “binary” (default) or “appbundle”.
amd64_variant: Option<Amd64Variant>amd64 microarchitecture variant filter (v1 / v2 / v3 / v4),
set via the amd64_variant: key. When set, only artifacts with the
matching amd64_variant metadata are included. The legacy goamd64:
spelling is accepted via serde alias for back-compat with imported
configs. When unset, all amd64 variants are included (no filtering).
Typed as Amd64Variant, so any value outside v1..v4 is
rejected when the config is parsed.
if_condition: Option<String>Template-conditional: skip this DMG config if rendered result is “false” or empty. Render failure hard-errors (not silent-skip).
volume_name: Option<String>Volume label shown in Finder when the image is mounted.
Supports template variables. Defaults to the project name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DmgConfig
impl<'de> Deserialize<'de> for DmgConfig
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 JsonSchema for DmgConfig
impl JsonSchema for DmgConfig
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