Files
nfpm/www/content/docs/cmd/nfpm_package.md
Dj GilcreaseandClaude Fable 5.2 410234f7ef feat(macos): add app, dmg and pkg packagers
Three packagers for macOS, built in pure Go on any platform:

- pkg: an installer package (.pkg) from contents and the preinstall and
  postinstall scripts, as a product archive that declares its
  architecture.
- app: an application bundle delivered as a zip (.app.zip), with a
  generated Info.plist.
- dmg: the same bundle in a disk image (.dmg) next to a link to the
  Applications folder.

app and dmg share the new "app" settings; pkg has its own. All three
take name, version, arch and contents from the shared fields, can be
signed with a PKCS#12 identity, and report the shared settings macOS has
no place for instead of dropping them silently.

Refs #535, #536.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 11:35:17 -08:00

24 lines
652 B
Markdown

---
title: nfpm package
---
Creates a package based on the given config file and flags
```
nfpm package [flags]
```
## Options
```
-f, --config string config file to be used (default "nfpm.yaml")
-h, --help help for package
-p, --packager string which packager implementation to use [apk|app|archlinux|deb|dmg|ipk|msi|msix|pkg|rpm|srpm]
-t, --target string where to save the generated package (filename, folder or empty for current folder)
```
## See also
* [nfpm](/docs/cmd/nfpm/) - Packages apps on RPM, Deb, APK, Arch Linux, ipk, MSI, MSIX, and macOS (app, dmg, pkg) formats based on a YAML configuration file