Files
nfpm/www/static/schema.json
Dj GilcreaseandClaude Opus 5.5 2aa4b1a288 fix(config): isolate macOS overrides, honour empty passphrases, relax schema
- Config.Get deep-copies Info.plist values before merging an override.
  mergo shared the nested dictionaries and arrays, so a dmg override
  changed the base settings and every later app result.
- NFPM_APP_PASSPHRASE and NFPM_PKG_PASSPHRASE set to an empty value now
  select an empty passphrase even when NFPM_PASSPHRASE is set, using the
  presence-aware lookup MSIX uses. A custom mapping still reads nothing
  from the process environment.
- The schema no longer requires app.identifier and pkg.identifier in
  every layer: an override may leave them to the base settings. The
  packagers still require them in the merged settings.
- arch, identifier and min_os_version accept environment expressions in
  the schema; literal values are still checked against the packagers'
  rules, and expanded values are checked when packaging.
- Tests validate real documents against the generated schema with the
  validator the schema:validate task uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 11:35:50 -08:00

1534 lines
34 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/goreleaser/nfpm/v2/config",
"$ref": "#/$defs/Config",
"$defs": {
"APK": {
"properties": {
"arch": {
"type": "string",
"title": "architecture in apk nomenclature"
},
"signature": {
"$ref": "#/$defs/APKSignature",
"title": "apk signature"
},
"scripts": {
"$ref": "#/$defs/APKScripts",
"title": "apk scripts"
}
},
"additionalProperties": false,
"type": "object"
},
"APKScripts": {
"properties": {
"preupgrade": {
"type": "string",
"title": "pre upgrade script"
},
"postupgrade": {
"type": "string",
"title": "post upgrade script"
}
},
"additionalProperties": false,
"type": "object"
},
"APKSignature": {
"properties": {
"key_file": {
"type": "string",
"title": "key file",
"examples": [
"key.gpg"
]
},
"key_id": {
"type": "string",
"title": "key id",
"examples": [
"bc8acdd415bd80b3"
]
},
"key_name": {
"type": "string",
"title": "key name",
"default": "maintainer_email.rsa.pub",
"examples": [
"origin"
]
}
},
"additionalProperties": false,
"type": "object"
},
"App": {
"properties": {
"arch": {
"type": "string",
"pattern": "^(arm64|x86_64|universal|.*[$].*)$",
"title": "architecture in macOS nomenclature",
"description": "arm64; x86_64 or universal; an environment variable may supply it"
},
"name": {
"type": "string",
"title": "bundle name",
"description": "name of the .app folder and the name macOS shows for the application; defaults to the package name",
"examples": [
"My App"
]
},
"identifier": {
"type": "string",
"pattern": "^([A-Za-z0-9][A-Za-z0-9.-]*|.*[$].*)$",
"title": "bundle identifier",
"description": "reverse-DNS identifier (CFBundleIdentifier) macOS knows the application by; the app and dmg packagers require it; keep it the same across releases",
"examples": [
"com.example.myapp"
]
},
"executable": {
"type": "string",
"title": "main executable",
"description": "name of the file in Contents/MacOS that macOS launches; defaults to the package name"
},
"min_os_version": {
"type": "string",
"pattern": "^([0-9]+([.][0-9]+)?([.][0-9]+)?|.*[$].*)$",
"title": "minimum macOS version",
"description": "macOS refuses to launch the application on an older version",
"examples": [
"13.0"
]
},
"info_plist": {
"type": "object",
"title": "additional Info.plist keys",
"description": "added to the generated Info.plist; the keys nFPM sets from other fields cannot be set here"
},
"signature": {
"$ref": "#/$defs/AppSignature",
"title": "app signature"
}
},
"additionalProperties": false,
"type": "object"
},
"AppSignature": {
"properties": {
"p12_file": {
"type": "string",
"title": "PKCS#12 file holding the Developer ID Application certificate and its private key"
},
"timestamp_url": {
"type": "string",
"title": "RFC3161 timestamp URL",
"description": "defaults to Apple's timestamp service; set to none to sign without a timestamp",
"examples": [
"none"
]
},
"entitlements": {
"type": "string",
"title": "entitlements property list file"
}
},
"additionalProperties": false,
"type": "object"
},
"ArchLinux": {
"properties": {
"pkgbase": {
"type": "string",
"title": "explicitly specify the name used to refer to a split package"
},
"arch": {
"type": "string",
"title": "architecture in archlinux nomenclature"
},
"packager": {
"type": "string",
"title": "organization that packaged the software"
},
"scripts": {
"$ref": "#/$defs/ArchLinuxScripts",
"title": "archlinux-specific scripts"
}
},
"additionalProperties": false,
"type": "object"
},
"ArchLinuxScripts": {
"properties": {
"preupgrade": {
"type": "string",
"title": "preupgrade script"
},
"postupgrade": {
"type": "string",
"title": "postupgrade script"
}
},
"additionalProperties": false,
"type": "object"
},
"Config": {
"properties": {
"replaces": {
"items": {
"type": "string",
"examples": [
"nfpm"
]
},
"type": "array",
"title": "replaces directive"
},
"provides": {
"items": {
"type": "string",
"examples": [
"nfpm"
]
},
"type": "array",
"title": "provides directive"
},
"depends": {
"items": {
"type": "string",
"examples": [
"nfpm"
]
},
"type": "array",
"title": "depends directive"
},
"recommends": {
"items": {
"type": "string",
"examples": [
"nfpm"
]
},
"type": "array",
"title": "recommends directive"
},
"suggests": {
"items": {
"type": "string",
"examples": [
"nfpm"
]
},
"type": "array",
"title": "suggests directive"
},
"conflicts": {
"items": {
"type": "string",
"examples": [
"nfpm"
]
},
"type": "array",
"title": "conflicts directive"
},
"contents": {
"$ref": "#/$defs/Contents",
"title": "files to add to the package"
},
"umask": {
"type": "integer",
"title": "umask for file contents",
"examples": [
112
]
},
"scripts": {
"$ref": "#/$defs/Scripts",
"title": "scripts to execute"
},
"rpm": {
"$ref": "#/$defs/RPM",
"title": "rpm-specific settings"
},
"deb": {
"$ref": "#/$defs/Deb",
"title": "deb-specific settings"
},
"apk": {
"$ref": "#/$defs/APK",
"title": "apk-specific settings"
},
"archlinux": {
"$ref": "#/$defs/ArchLinux",
"title": "archlinux-specific settings"
},
"ipk": {
"$ref": "#/$defs/IPK",
"title": "ipk-specific settings"
},
"msix": {
"$ref": "#/$defs/MSIX",
"title": "msix-specific settings"
},
"msi": {
"$ref": "#/$defs/MSI",
"title": "msi-specific settings"
},
"app": {
"$ref": "#/$defs/App",
"title": "macOS app bundle settings",
"description": "used by the app and dmg packagers"
},
"pkg": {
"$ref": "#/$defs/Pkg",
"title": "macOS pkg-specific settings"
},
"name": {
"type": "string",
"title": "package name"
},
"arch": {
"type": "string",
"title": "target architecture",
"examples": [
"amd64"
]
},
"platform": {
"type": "string",
"title": "target platform",
"default": "linux",
"examples": [
"linux"
]
},
"epoch": {
"type": "string",
"title": "version epoch",
"default": "extracted from version",
"examples": [
"2"
]
},
"version": {
"type": "string",
"title": "version",
"examples": [
"v1.0.2",
"2.0.1"
]
},
"version_schema": {
"type": "string",
"enum": [
"semver",
"none"
],
"title": "version schema",
"default": "semver"
},
"release": {
"type": "string",
"title": "version release",
"examples": [
"1"
]
},
"prerelease": {
"type": "string",
"title": "version prerelease",
"default": "extracted from version"
},
"version_metadata": {
"type": "string",
"title": "version metadata",
"examples": [
"git"
]
},
"section": {
"type": "string",
"title": "package section",
"examples": [
"default"
]
},
"priority": {
"type": "string",
"title": "package priority",
"examples": [
"extra"
]
},
"maintainer": {
"type": "string",
"title": "package maintainer",
"examples": [
"me@example.com"
]
},
"description": {
"type": "string",
"title": "package description"
},
"vendor": {
"type": "string",
"title": "package vendor",
"examples": [
"MyCorp"
]
},
"homepage": {
"type": "string",
"title": "package homepage",
"examples": [
"https://example.com"
]
},
"license": {
"type": "string",
"title": "package license",
"examples": [
"MIT"
]
},
"changelog": {
"type": "string",
"title": "package changelog",
"description": "see https://github.com/goreleaser/chglog for more details",
"examples": [
"changelog.yaml"
]
},
"disable_globbing": {
"type": "boolean",
"title": "whether to disable file globbing",
"default": false
},
"mtime": {
"type": "string",
"format": "date-time",
"title": "time to set into the files generated by nFPM"
},
"overrides": {
"additionalProperties": {
"$ref": "#/$defs/Overridables"
},
"type": "object",
"title": "overrides",
"description": "override some fields when packaging with a specific packager"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"name",
"arch",
"version"
]
},
"Content": {
"properties": {
"src": {
"type": "string"
},
"dst": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"symlink",
"ghost",
"config",
"config|noreplace",
"config|missingok",
"doc",
"license",
"licence",
"readme",
"dir",
"tree",
"config|tree",
"config|noreplace|tree",
"config|missingok|tree",
""
],
"default": ""
},
"packager": {
"type": "string"
},
"file_info": {
"$ref": "#/$defs/ContentFileInfo"
},
"expand": {
"type": "boolean"
},
"disown_subtree": {
"items": {
"type": "string"
},
"type": "array"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"dst"
]
},
"ContentFileInfo": {
"properties": {
"owner": {
"type": "string"
},
"group": {
"type": "string"
},
"mode": {
"type": "integer"
},
"mtime": {
"type": "string",
"format": "date-time"
},
"lang": {
"type": "string",
"examples": [
"en"
]
}
},
"additionalProperties": false,
"type": "object"
},
"Contents": {
"items": {
"$ref": "#/$defs/Content"
},
"type": "array"
},
"Deb": {
"properties": {
"arch": {
"type": "string",
"title": "architecture in deb nomenclature"
},
"arch_variant": {
"type": "string",
"title": "target architecture variant in deb nomenclature",
"examples": [
"amd64v3"
]
},
"scripts": {
"$ref": "#/$defs/DebScripts",
"title": "scripts"
},
"triggers": {
"$ref": "#/$defs/DebTriggers",
"title": "triggers"
},
"breaks": {
"items": {
"type": "string"
},
"type": "array",
"title": "breaks"
},
"signature": {
"$ref": "#/$defs/DebSignature",
"title": "signature"
},
"compression": {
"type": "string",
"enum": [
"gzip",
"xz",
"zstd",
"none"
],
"title": "compression algorithm to be used",
"default": "gzip:-1"
},
"fields": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "fields"
},
"predepends": {
"items": {
"type": "string",
"examples": [
"nfpm"
]
},
"type": "array",
"title": "predepends directive"
}
},
"additionalProperties": false,
"type": "object"
},
"DebScripts": {
"properties": {
"rules": {
"type": "string",
"title": "rules"
},
"templates": {
"type": "string",
"title": "templates"
},
"config": {
"type": "string",
"title": "config"
}
},
"additionalProperties": false,
"type": "object"
},
"DebSignature": {
"properties": {
"key_file": {
"type": "string",
"title": "key file",
"examples": [
"key.gpg"
]
},
"key_id": {
"type": "string",
"title": "key id",
"examples": [
"bc8acdd415bd80b3"
]
},
"method": {
"type": "string",
"enum": [
"dpkg-sig",
"debsign"
],
"title": "method role",
"default": "debsign"
},
"type": {
"type": "string",
"enum": [
"origin",
"maint",
"archive"
],
"title": "signer role",
"default": "origin"
},
"signer": {
"type": "string",
"title": "signer"
}
},
"additionalProperties": false,
"type": "object"
},
"DebTriggers": {
"properties": {
"interest": {
"items": {
"type": "string"
},
"type": "array",
"title": "interest"
},
"interest_await": {
"items": {
"type": "string"
},
"type": "array",
"title": "interest await"
},
"interest_noawait": {
"items": {
"type": "string"
},
"type": "array",
"title": "interest noawait"
},
"activate": {
"items": {
"type": "string"
},
"type": "array",
"title": "activate"
},
"activate_await": {
"items": {
"type": "string"
},
"type": "array",
"title": "activate await"
},
"activate_noawait": {
"items": {
"type": "string"
},
"type": "array",
"title": "activate noawait"
}
},
"additionalProperties": false,
"type": "object"
},
"IPK": {
"properties": {
"abi_version": {
"type": "string",
"title": "abi version"
},
"alternatives": {
"items": {
"$ref": "#/$defs/IPKAlternative"
},
"type": "array",
"title": "alternatives"
},
"arch": {
"type": "string",
"title": "architecture in deb nomenclature"
},
"auto_installed": {
"type": "boolean",
"title": "auto installed",
"default": false
},
"essential": {
"type": "boolean",
"title": "whether package is essential",
"default": false
},
"fields": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "fields"
},
"predepends": {
"items": {
"type": "string",
"examples": [
"nfpm"
]
},
"type": "array",
"title": "predepends directive"
},
"tags": {
"items": {
"type": "string"
},
"type": "array",
"title": "tags"
}
},
"additionalProperties": false,
"type": "object"
},
"IPKAlternative": {
"properties": {
"priority": {
"type": "integer",
"title": "priority"
},
"target": {
"type": "string",
"title": "target"
},
"link_name": {
"type": "string",
"title": "link name"
}
},
"additionalProperties": false,
"type": "object"
},
"MSI": {
"properties": {
"arch": {
"type": "string",
"title": "architecture in msi nomenclature"
},
"version": {
"type": "string",
"title": "version in msi nomenclature",
"description": "overrides \"version\"; still normalized to major.minor.build and must fit 255.255.65535",
"examples": [
"24.1.0"
]
},
"product_name": {
"type": "string",
"title": "product name",
"description": "defaults to the package name"
},
"manufacturer": {
"type": "string",
"title": "manufacturer/author of the product",
"description": "defaults to the vendor or maintainer",
"examples": [
"My Company"
]
},
"product_code": {
"type": "string",
"title": "product code GUID",
"description": "derived from manufacturer/product name/arch/version (changes every release) when empty; pinning it breaks upgrades",
"examples": [
"{12345678-1234-1234-1234-123456789ABC}"
]
},
"upgrade_code": {
"type": "string",
"title": "upgrade code GUID",
"description": "derived from manufacturer/product name/arch (stable across releases) when empty",
"examples": [
"{ABCDEF01-2345-6789-ABCD-EF0123456789}"
]
},
"install_dir": {
"type": "string",
"title": "default install folder name",
"description": "created under Program Files (or the user's local app data for per-user installs); defaults to the product name"
},
"per_user": {
"type": "boolean",
"title": "per-user install",
"description": "install for the current user only without elevation; keep context fixed across upgrades or uninstall/migrate first; defaults to a per-machine install"
},
"properties": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "arbitrary MSI Property rows"
},
"file_versions": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "file version overrides by contents destination",
"description": "PE file versions are detected automatically; an empty override explicitly keeps a file unversioned"
},
"minimal_ui": {
"type": "boolean",
"title": "install the canned minimal install wizard"
},
"upgrade": {
"$ref": "#/$defs/MSIUpgrade",
"title": "major upgrade behavior"
},
"shortcuts": {
"items": {
"$ref": "#/$defs/MSIShortcut"
},
"type": "array",
"title": "shortcuts to create"
},
"services": {
"items": {
"$ref": "#/$defs/MSIService"
},
"type": "array",
"title": "windows services to install"
},
"registry": {
"items": {
"$ref": "#/$defs/MSIRegistry"
},
"type": "array",
"title": "registry entries to create"
},
"signature": {
"$ref": "#/$defs/MSISignature",
"title": "msi signature"
}
},
"additionalProperties": false,
"type": "object"
},
"MSIRegistry": {
"properties": {
"root": {
"type": "string",
"pattern": "^[hH][kK]([lL][mM]|[cC][uU]|[cC][rR]|[mM][uU]|[uU])$",
"title": "registry root"
},
"key": {
"type": "string",
"title": "registry key path"
},
"name": {
"type": "string",
"title": "value name"
},
"value": {
"type": "string",
"title": "value data"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"root",
"key"
]
},
"MSIService": {
"properties": {
"name": {
"type": "string",
"title": "service name"
},
"display_name": {
"type": "string",
"title": "service display name"
},
"executable": {
"type": "string",
"title": "destination path of the installed service executable"
},
"description": {
"type": "string",
"title": "service description"
},
"start_type": {
"type": "string",
"pattern": "^([aA][uU][tT][oO]|[dD][eE][mM][aA][nN][dD]|[dD][iI][sS][aA][bB][lL][eE][dD])$",
"title": "service start type",
"default": "demand"
},
"account": {
"type": "string",
"title": "account the service runs as"
},
"arguments": {
"type": "string",
"title": "service arguments"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array",
"title": "service dependencies"
},
"start": {
"type": "boolean",
"title": "start the service on install",
"description": "the service is always stopped before install/upgrade and stopped and deleted on uninstall"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"name",
"executable"
]
},
"MSIShortcut": {
"properties": {
"name": {
"type": "string",
"title": "shortcut display name"
},
"target": {
"type": "string",
"title": "destination path of an installed file the shortcut points to"
},
"directory": {
"type": "string",
"title": "standard folder ID",
"default": "ProgramMenuFolder",
"examples": [
"DesktopFolder"
]
},
"arguments": {
"type": "string",
"title": "command-line arguments"
},
"description": {
"type": "string",
"title": "shortcut description"
},
"icon": {
"type": "string",
"title": "path to a PE file containing icon resources",
"description": "advertised shortcuts require EXE-format icon data; raw .ico files are not supported"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"name",
"target"
]
},
"MSISignature": {
"properties": {
"pfx_file": {
"type": "string",
"title": "PFX certificate file"
},
"timestamp_url": {
"type": "string",
"title": "RFC3161 timestamp URL"
}
},
"additionalProperties": false,
"type": "object"
},
"MSIUpgrade": {
"properties": {
"downgrade_error_message": {
"type": "string",
"title": "message shown when a newer version is already installed"
},
"allow_downgrades": {
"type": "boolean",
"title": "allow installing over a newer version",
"description": "disables the downgrade block; defaults to false"
},
"allow_same_version": {
"type": "boolean",
"title": "treat an equal version as an upgrade",
"description": "replace the same major.minor.build within one install context; requires a new ProductCode via distinct release metadata or an explicit new code; defaults to false"
}
},
"additionalProperties": false,
"type": "object"
},
"MSIX": {
"properties": {
"arch": {
"type": "string",
"title": "architecture in msix nomenclature"
},
"publisher": {
"type": "string",
"title": "publisher identity",
"description": "defaults to the signing certificate subject when signing or CN=\u003cvendor or maintainer\u003e",
"examples": [
"CN=MyCompany, O=MyCompany, C=US"
]
},
"identity": {
"$ref": "#/$defs/MSIXIdentity",
"title": "package identity"
},
"properties": {
"$ref": "#/$defs/MSIXProperties",
"title": "package properties"
},
"applications": {
"items": {
"$ref": "#/$defs/MSIXApplication"
},
"type": "array",
"title": "applications in the package"
},
"dependencies": {
"$ref": "#/$defs/MSIXDependencies",
"title": "target device families"
},
"capabilities": {
"$ref": "#/$defs/MSIXCapabilities",
"title": "package capabilities"
},
"signature": {
"$ref": "#/$defs/MSIXSignature",
"title": "msix signature"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"applications"
]
},
"MSIXApplication": {
"properties": {
"id": {
"type": "string",
"title": "application ID"
},
"executable": {
"type": "string",
"title": "executable path in package"
},
"entry_point": {
"type": "string",
"title": "entry point",
"default": "Windows.FullTrustApplication"
},
"visual_elements": {
"$ref": "#/$defs/MSIXVisualElements",
"title": "visual elements"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"id",
"executable"
]
},
"MSIXCapabilities": {
"properties": {
"capabilities": {
"items": {
"type": "string"
},
"type": "array"
},
"device_capabilities": {
"items": {
"type": "string"
},
"type": "array"
},
"restricted": {
"items": {
"type": "string"
},
"type": "array"
}
},
"additionalProperties": false,
"type": "object"
},
"MSIXDependencies": {
"properties": {
"target_device_families": {
"items": {
"$ref": "#/$defs/MSIXTargetDeviceFamily"
},
"type": "array"
}
},
"additionalProperties": false,
"type": "object"
},
"MSIXIdentity": {
"properties": {
"resource_id": {
"type": "string",
"title": "resource identifier"
}
},
"additionalProperties": false,
"type": "object"
},
"MSIXProperties": {
"properties": {
"display_name": {
"type": "string",
"title": "display name"
},
"publisher_display_name": {
"type": "string",
"title": "publisher display name"
},
"logo": {
"type": "string",
"title": "package logo path"
}
},
"additionalProperties": false,
"type": "object"
},
"MSIXSignature": {
"properties": {
"pfx_file": {
"type": "string",
"title": "PFX certificate file"
}
},
"additionalProperties": false,
"type": "object"
},
"MSIXTargetDeviceFamily": {
"properties": {
"name": {
"type": "string",
"title": "device family name",
"examples": [
"Windows.Desktop"
]
},
"min_version": {
"type": "string",
"title": "minimum OS version",
"examples": [
"10.0.17763.0"
]
},
"max_version_tested": {
"type": "string",
"title": "max tested version",
"examples": [
"10.0.22621.0"
]
}
},
"additionalProperties": false,
"type": "object",
"required": [
"name",
"min_version",
"max_version_tested"
]
},
"MSIXVisualElements": {
"properties": {
"display_name": {
"type": "string"
},
"description": {
"type": "string"
},
"background_color": {
"type": "string",
"default": "transparent"
},
"square150x150_logo": {
"type": "string"
},
"square44x44_logo": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
},
"Overridables": {
"properties": {
"replaces": {
"items": {
"type": "string",
"examples": [
"nfpm"
]
},
"type": "array",
"title": "replaces directive"
},
"provides": {
"items": {
"type": "string",
"examples": [
"nfpm"
]
},
"type": "array",
"title": "provides directive"
},
"depends": {
"items": {
"type": "string",
"examples": [
"nfpm"
]
},
"type": "array",
"title": "depends directive"
},
"recommends": {
"items": {
"type": "string",
"examples": [
"nfpm"
]
},
"type": "array",
"title": "recommends directive"
},
"suggests": {
"items": {
"type": "string",
"examples": [
"nfpm"
]
},
"type": "array",
"title": "suggests directive"
},
"conflicts": {
"items": {
"type": "string",
"examples": [
"nfpm"
]
},
"type": "array",
"title": "conflicts directive"
},
"contents": {
"$ref": "#/$defs/Contents",
"title": "files to add to the package"
},
"umask": {
"type": "integer",
"title": "umask for file contents",
"examples": [
112
]
},
"scripts": {
"$ref": "#/$defs/Scripts",
"title": "scripts to execute"
},
"rpm": {
"$ref": "#/$defs/RPM",
"title": "rpm-specific settings"
},
"deb": {
"$ref": "#/$defs/Deb",
"title": "deb-specific settings"
},
"apk": {
"$ref": "#/$defs/APK",
"title": "apk-specific settings"
},
"archlinux": {
"$ref": "#/$defs/ArchLinux",
"title": "archlinux-specific settings"
},
"ipk": {
"$ref": "#/$defs/IPK",
"title": "ipk-specific settings"
},
"msix": {
"$ref": "#/$defs/MSIX",
"title": "msix-specific settings"
},
"msi": {
"$ref": "#/$defs/MSI",
"title": "msi-specific settings"
},
"app": {
"$ref": "#/$defs/App",
"title": "macOS app bundle settings",
"description": "used by the app and dmg packagers"
},
"pkg": {
"$ref": "#/$defs/Pkg",
"title": "macOS pkg-specific settings"
}
},
"additionalProperties": false,
"type": "object"
},
"Pkg": {
"properties": {
"arch": {
"type": "string",
"pattern": "^(arm64|x86_64|universal|.*[$].*)$",
"title": "architecture in macOS nomenclature",
"description": "arm64; x86_64 or universal; an environment variable may supply it"
},
"identifier": {
"type": "string",
"pattern": "^([A-Za-z0-9][A-Za-z0-9._-]*|.*[$].*)$",
"title": "package identifier",
"description": "reverse-DNS identifier macOS records the installation under; the pkg packager requires it; it must stay the same across releases or a new version is treated as a different package",
"examples": [
"com.example.myapp"
]
},
"min_os_version": {
"type": "string",
"pattern": "^([0-9]+([.][0-9]+)?([.][0-9]+)?|.*[$].*)$",
"title": "minimum macOS version",
"description": "the installer refuses to install on an older macOS",
"examples": [
"13.0"
]
},
"signature": {
"$ref": "#/$defs/PkgSignature",
"title": "pkg signature"
}
},
"additionalProperties": false,
"type": "object"
},
"PkgSignature": {
"properties": {
"p12_file": {
"type": "string",
"title": "PKCS#12 file holding the Developer ID Installer certificate and its private key"
},
"timestamp_url": {
"type": "string",
"title": "RFC3161 timestamp URL",
"description": "defaults to Apple's timestamp service; set to none to sign without a timestamp",
"examples": [
"none"
]
}
},
"additionalProperties": false,
"type": "object"
},
"RPM": {
"properties": {
"arch": {
"type": "string",
"title": "architecture in rpm nomenclature"
},
"buildhost": {
"type": "string",
"title": "host name of the build environment"
},
"scripts": {
"$ref": "#/$defs/RPMScripts",
"title": "rpm-specific scripts"
},
"requires": {
"$ref": "#/$defs/RPMRequires",
"title": "rpm-specific requires"
},
"group": {
"type": "string",
"title": "package group",
"examples": [
"Unspecified"
]
},
"summary": {
"type": "string",
"title": "package summary"
},
"compression": {
"type": "string",
"enum": [
"gzip",
"lzma",
"xz",
"zstd"
],
"title": "compression algorithm to be used",
"default": "gzip:-1"
},
"signature": {
"$ref": "#/$defs/RPMSignature",
"title": "rpm signature"
},
"packager": {
"type": "string",
"title": "organization that actually packaged the software"
},
"prefixes": {
"items": {
"type": "string"
},
"type": "array",
"title": "Prefixes for relocatable packages"
},
"script_requires": {
"type": "boolean",
"title": "require the interpreters of executable scripts",
"default": false
}
},
"additionalProperties": false,
"type": "object"
},
"RPMRequires": {
"properties": {
"post": {
"items": {
"type": "string",
"examples": [
"nfpm"
]
},
"type": "array",
"title": "post requires directive"
}
},
"additionalProperties": false,
"type": "object"
},
"RPMScripts": {
"properties": {
"pretrans": {
"type": "string",
"title": "pretrans script"
},
"posttrans": {
"type": "string",
"title": "posttrans script"
},
"verify": {
"type": "string",
"title": "verify script"
}
},
"additionalProperties": false,
"type": "object"
},
"RPMSignature": {
"properties": {
"key_file": {
"type": "string",
"title": "key file",
"examples": [
"key.gpg"
]
},
"key_id": {
"type": "string",
"title": "key id",
"examples": [
"bc8acdd415bd80b3"
]
}
},
"additionalProperties": false,
"type": "object"
},
"Scripts": {
"properties": {
"preinstall": {
"type": "string",
"title": "pre install"
},
"postinstall": {
"type": "string",
"title": "post install"
},
"preremove": {
"type": "string",
"title": "pre remove"
},
"postremove": {
"type": "string",
"title": "post remove"
}
},
"additionalProperties": false,
"type": "object"
}
},
"description": "nFPM configuration definition file"
}