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 goamd64: Option<String>,
pub if_condition: 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.
GoReleaser Pro feature.
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”.
goamd64: Option<String>amd64 microarchitecture variant filter (v1 / v2 / v3 / v4).
When set, only artifacts with the matching amd64_variant metadata
are included. Mirrors GoReleaser Pro DMG’s goamd64: string field.
When unset, all amd64 variants are included (no filtering).
if_condition: Option<String>Template-conditional: skip this DMG config if rendered result is “false” or empty (GoReleaser Pro). Render failure hard-errors (not silent-skip).
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_name() -> String
fn schema_name() -> String
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 is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more