How to Make a Mac Installer Package

Hint: It's really easy!

Package Builder

How to Make a Mac Installer Package

Updated December 2024

You can do it with the command line...

If you want to make a package the hard way then sure. Just:

... • load up Terminal, • read the entire man pages for pkgbuild and productbuild, • look up the 20 year old documentation in the legacy archive on Apple's developer website, • make a distribution file, • a Component file (maybe?), • try writing some long commands, • fail, • fail again, • read 17 posts on the internet before finding out why slightly-wrong thing you're doing is breaking the entire process in an indecipherable way (it's a good thing the internet is full of people who have failed before trying to do this!), • try it again, • run it through code sign validation, • don't forget to look up altool, no, make that notarytool, • to learn how to notarize it, • staple, • and now three days later you've finally made one package. Congratulations.

... OR ...

Make a .pkg in 30 seconds with Package Builder

Yes, really. Package Builder is the easiest way to make a macOS installer package, even code signed and notarized.

To create a macOS installer package:
  1. Launch Package Builder.
  2. Enter a name for the package.
  3. Drag-and-drop your app/files/etc.
  4. Customize the destinations if needed.
  5. Click the Build button.

Of course there are more options in Package Builder, like customizing:

icon

Background Image

icon

Localized Welcome Text

icon

License Agreements

icon

Install Scripts

icon

Install Requirements

icon

Multiple Choices

icon

Code Signing

icon

Notarization

... but the point is: it's really easy.

For creating a fully code signed and notarized macOS package installer, with the option of automating building of the disk image? There's honestly no easier option. And if you want to place your pkg inside of a disk image, that's easy too, with DMG Canvas.





DMG Canvas

Bundle your package (.pkg) inside a disk image (.dmg)

DMG Canvas

If you want to put your .pkg in a disk image, it's also super easy with DMG Canvas! Just use the drag-and-drop visual editor to layout your disk image, drop the Package Builder file into the window, and DMG Canvas will automatically build your package and place it into the disk image for you.

Check Out DMG Canvas