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>
1.3 KiB
title, cascade
| title | cascade | ||
|---|---|---|---|
| Documentation |
|
Welcome to the nFPM documentation.
Why nFPM?
While fpm is great, it depends on Ruby, tar and other software. nFPM is a simpler, zero-dependency, minimal-assumptions alternative.
This is a subtle way of saying it won't have all features, nor all formats that fpm has: it is supposed to be simpler. And that's OK! Most of us don't need all those features most of the time.
Features
- Zero Dependencies: No Ruby, no tar, no external dependencies
- Multiple Formats: deb, rpm, apk, ipk, arch linux, msi, msix, and macOS app, dmg, and pkg packages
- Simple Configuration: Single YAML file for all package formats
- Cross Platform: Build on any platform Go supports
- Fast: Written in Go for speed and efficiency
How does it work?
You create a YAML file with the definition of what you need, run the nfpm binary, and it takes care of everything. The same configuration file can be used to create packages in all the supported formats.
nFPM is not FPM
This is a subtle way of saying it won't have all features, nor all formats that fpm has: it is supposed to be simpler.
And that's OK! Most of us don't need all those features most of the time.