This document shows how to create a distribution with 2 packages: one to install the Font Book application in the /Applications
folder, another one to install fonts in the /Library/Fonts folder.
| 1 | Open the Packages application. |
| 2 | Choose File > New Project |
| 3 | Select the Distribution project template and click Next. |
| 4 | Type MyDistribution in the Project name text field and click Finish. |
| 1 | Select the MyDistribution package and double-click on its label to edit it. |
| 2 | Type Application and validate with Return. |
| 3 | Click the Settings tab. |
| 4 | Set the Tag Identifier to be com.mygreatcompany.pkg.application. |
| 5 | Click the Payload tab. |
| 6 | Select the Applications line. |
| 7 | Click the + button. |
| 8 | Go the /Applications folder. |
| 9 | Select the Font Book application and click Add
|
| 10 | Click Add. |
| 11 | Choose Project > New Package. |
| 12 | Select the untitled package package and double-click on its label to edit it. |
| 13 | Type Fonts and validate with Return. |
| 14 | Click the Settings tab. |
| 15 | Set the Tag Identifier to be com.mygreatcompany.pkg.fonts. |
| 16 | Click the Payload tab. |
| 17 | Select the /Library line. |
| 18 | Choose Hierarchy > New Folder. |
| 19 | Set the name of the folder to Fonts. |
| 20 | Click the + button. |
| 21 | Go the /Library/Fonts folder. |
| 22 | Select one or more fonts and click Add |
| 23 | Click Add. |
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 Project > Project. | |
| 2 | Click the Presentation tab. | |
| 3 | With a text editor, create a text document and write a welcome message. Save this document in the distribution project folder.
| |
| 4 | Click the the + button of the Introduction inspector. | |
| 5 | Click the rightmost popup button on the first line of the inspector table. | |
| 6 | Choose Other | |
| 7 | Go to the distribution project folder. | |
| 8 | Select the document you've created and click Choose. |
| 1 | Choose File > Save. |
| 2 | Choose Build > Build. |
The MyDistribution.mpkg distribution will be created the build folder at the same level that the project document. The packages are embedded into the distribution.
| Revision History | ||
|