1
1
mirror of https://github.com/goreleaser/nfpm synced 2025-04-30 05:58:00 +02:00
nfpm/www/docs/static/schema.json
Carlos Alexandro Becker 5f52cb669c
chore: re-generate schema
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2025-03-12 22:26:44 -03:00

859 lines
17 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"
},
"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"
},
"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",
"dir",
"tree",
""
],
"default": ""
},
"packager": {
"type": "string"
},
"file_info": {
"$ref": "#/$defs/ContentFileInfo"
},
"expand": {
"type": "boolean"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"dst"
]
},
"ContentFileInfo": {
"properties": {
"owner": {
"type": "string"
},
"group": {
"type": "string"
},
"mode": {
"type": "integer"
},
"mtime": {
"type": "string",
"format": "date-time"
}
},
"additionalProperties": false,
"type": "object"
},
"Contents": {
"items": {
"$ref": "#/$defs/Content"
},
"type": "array"
},
"Deb": {
"properties": {
"arch": {
"type": "string",
"title": "architecture in deb nomenclature"
},
"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",
"none"
],
"title": "compression algorithm to be used",
"default": "gzip"
},
"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": [
"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"
},
"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"
}
},
"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"
},
"group": {
"type": "string",
"title": "package group",
"examples": [
"Unspecified"
]
},
"summary": {
"type": "string",
"title": "package summary"
},
"compression": {
"type": "string",
"enum": [
"gzip",
"lzma",
"xz"
],
"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"
}
},
"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"
}