This document shows how to create a metapackage containing two packages: one to install the Font Book application in the /Applications folder, another one to install fonts in the /Library/Fonts folder. This will let you discover the Settings, Files and Components panes.
|1||Open the Iceberg application.|
|2||Choose File > New Project .|
|3||Select the Core Templates Metapackage project template and click Next.|
|4||Type MyMetapackage in the Project name text field and click Finish.|
Managing complex hierarchies of packages and metapackages does not require multiple projects, one is enough.
Start by creating the first package which will be a required component of the installation and will install the Font Book application:
|1||Choose View > Components.|
|2||Choose Project > New Component .|
|3||Type Font Book in the Component name text field.|
|3||Choose Required from the Attribute pop-up menu and click Add.|
|4||Select the new package in the Packages & Metapackages list.|
|5||Choose View > Files.|
|6||Click on the disclosure triangle of the / folder to reveal its content.|
|7||Select the Applications line.|
|8||Choose Archive > Add Files .|
|9||Go the Applications folder.|
|10||Select the Font Book application and click Add.|
|11||Choose the reference style from the Reference Style pop-up menu.
Then, create the second package which will be installed by default but can be unselected with the Custom Install mode:
|1||Choose View > Project.|
|2||Choose View > Files.|
|3||Choose Project > New Component .|
|4||Type Additional Fonts in the Component name text field.|
|5||Choose Selected from the Attribute pop-up menu and click Add.|
|6||Select the new package in the Packages & Metapackages list.|
|7||Choose View > Files.|
|8||Click on the disclosure triangle of the / folder to reveal its content.|
|9||Select the Library line.|
|10||Choose Archive > New Folder.|
|11||Type Fonts in the text field.|
|12||Choose Archive > Add Files .|
|13||Go to the /Library/Fonts folder.|
|14||Select one or more fonts and click Add.|
|15||Choose the reference style from the Reference Style pop-up menu.|
Installing items in the /Applications and /Library/Fonts folders requires administrative privileges. You are going to tweak the packages settings so that the user needs to authenticate when he/she installs the metapackage.
|1||Select the Font Book package in the Packages & Metapackages list.|
|2||Choose View > Settings.|
|3||Choose Root Authorization from the Authorization pop-up menu.|
|4||Select the Additional Fonts package in the Packages & Metapackages list.|
|5||Choose View > Settings.|
|6||Choose Root Authorization from the Authorization pop-up menu.|
You are now going to add a Welcome message which will be displayed by Installer when you launch the installation procedure of the metapackage.
|1||Choose View > Project.|
|2||Choose View > Components.|
With a text editor, create a text document and write a welcome message. Save this document in the metapackage project folder.
|4||Click the Path radio button of the Welcome section.|
|5||Choose Choose from the Action pop-up menu of the Welcome section.|
|6||Go to the metapackage project.|
|7||Select the text document and click Choose.|
|1||Choose File > Save.|
|2||Choose Build > Build.|
The MyMetapackage.mpkg will be created the build folder at the same level that the project document. Two packages named Font Book.pkg and Additional Fonts.pkg are created at the same level.