Package Building

After you have verified the contents of a package source, Composer allows you to build two different kinds of packages: PKGs and DMGs. Each format has advantages depending on the intended use of the package and the tool you use to deploy it.

Once a package source exists in Composer, you can build a PKG or DMG package from the source at any time. You also have the ability to convert from one format to another after a package has been built. For more information about converting between the PKG and DMG formats, see Creating Package Sources from Existing Packages.

Package Building for Mac Computers with Apple silicon

If you have Mac computers with Apple silicon in your environment, packages you build with Composer may include Intel-based executables, which require Apple's Rosetta translation service. To ensure users that install packages built with Composer are only prompted to install Rosetta when it is required, you can use the Executable Types in PKGs setting in Composer's packaging preferences to configure how Composer detects executable types and prompts users who install the package.

You can choose from the following package building options:
Automatically detect executable types

(Recommended) Composer automatically detects if your package contains any Intel-based executables. If Intel-based executables are found and Rosetta is not installed, Mac computers with Apple silicon prompt users that install the package to also install Rosetta.

This setting is used by default and should be used if you are unsure of the executable types in your package source.

One or more executables require Rosetta

Composer explicitly builds packages that contain Intel-based executables. If Rosetta is not installed, Mac computers with Apple silicon always prompt users that install the package to also install Rosetta.

This setting should only be used if you are certain that your package source contains Intel-based executables.

All executables are Universal

Composer explicitly builds packages that only contain Universal executables. Mac computers with Apple silicon will not prompt users that install the package to install Rosetta.

This setting should only be used if you are certain that your package source does not contain any Intel-based executables.

For more information about Rosetta prompts on Mac computers with Apple silicon, see If you need to install Rosetta on your Mac from Apple's support website.

For more information about about how Rosetta runs Intel-based executables on Mac computers with Apple silicon, see this documentation from the Apple Developer website.

Building a PKG

PKGs can be deployed using almost any deployment tool, such as Apple Remote Desktop (ARD), Jamf Pro, and other MDM solutions.

The PKG format allows for easy installation by the user. Double-clicking the package opens the Installer application and guides the user through the installation process.
Note: PKGs cannot dynamically deploy files in the user's home directory to user templates when used with Jamf Pro.
By default, Composer builds flat PKGs. For more information on flat PKGs, see Composer Preferences.
  1. Open Composer and authenticate locally.
  2. Select the package source you want to build from the Sources list in the sidebar.
  3. In the toolbar, click Build as PKG .
    Note: If the Build flat PKGs preference is enabled and the package source contains scripts that are not supported by flat PKGs, a dialog will appear. To disable this preference for this package only, click Build as non-flat PKG. To build a flat PKG that ignores unsupported scripts, click Build as flat PKG. For more information on which scripts are supported by flat PKGs, see Package Source Scripts.
  4. Select a location to save the package and click Save.

Building a DMG

When used in conjunction with Jamf Pro, the DMG format allows you to dynamically deploy files and folders to each user that has an account on a computer, as well as the network home directories of currently logged-in users. There is also an option to deploy files and folders to the user template directories, ensuring that any new user receives the correct default environment.

  1. Open Composer and authenticate locally.
  2. Select the package source you want to build from the Sources list in the sidebar.
  3. In the toolbar, click Build as DMG .
  4. Select a location to save the package and click Save.

Signing a Package

If you are building a package to deploy during Automated Device Enrollment, packages must be signed using a certificate that is trusted by the device at the time of enrollment.
Note:

Signing packages with a certificate generated from either the Jamf Pro built-in CA or from an Apple Developer Program account is recommended.

For more information about obtaining signing certificates, see the following Knowledge Base articles:

To sign built packages with Composer, go to Composer preferences and select the Sign with option and choose an installer certificate from the pop-up menu.

Installer certificates that are located in the login keychain in Keychain Access are displayed in the pop-up menu.

Warning:

The pop-up menu also displays application certificates, which are not recommended for signing packages.