This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Packaging
Simone Martorelli edited this page Mar 16, 2021
·
11 revisions
-
An Apple ID with Developer access. If you do not have an Apple ID:
- You can create one here.
- With your Apple ID created, visit developer.apple.com
- Click the Account link at the top of the page
- Authenticate with your Apple ID and agree to the terms and conditions
-
A copy of PackageMaker :
- Visit More Downloads for Apple Developers
- You will need to authenticate with your Apple Developer ID credentials
- Performa a search for PackageMaker
- Download the latest copy of "Auxiliary Tools for XCode"
- Open the downloaded DMG file and copy PackageMaker to the /Applications directory on your Mac
- Enrollment application
- LaunchDaemon for the PrivilegedCommandsHelper
- PrivilegedCommandsHelper
- PostInstall script
We need to change the ownership and permissions for the PrivilegedHelperTool and LaunchDaemon before adding them to the package project. We can use the Terminal.app (found in /Applications/Utilities/ on your Mac) to set the correct values. Replace /path/to/ with the path for each item. You can also drag and drop the file you are looking to set into the terminal to get the path.
- change the ownership for helper:
sudo chown root:wheel /path/to/com.ibm.cio.be.PrivilegedCommandsHelper
- change the permissions for the helper:
sudo chmod 755 /path/to/com.ibm.cio.be.PrivilegedCommandsHelper
- retrieve a copy of the launch daemon
- change ownership of the property list file:
sudo chown root:wheel /path/to/com.ibm.cio.be.PrivilegedCommandsHelper.plist
- change permissions of the property list file:
sudo chmod 644 /path/to/com.ibm.cio.be.PrivilegedCommandsHelper.plist
- retrieve a copy of the post install script
- add the execute flag permission to the script:
sudo chmod +x /path/to/postinstall
- Launch PackageMaker.app from /Applications
- Upon launch you will be required to provide an organization name in a reverse domain name style identifier format:
- Provide a name for the soon to be completed installer package under the configuration tab:
- Drag and drop the compiled and signed build of the enrollment application into the Contents side bar of PackageMaker. In the Configuration tab, set the Destination path to /Applications:
- In the Contents tab, click the button to Apply Recommendations to set the proper permissions:
- Drag and drop the compiled and signed build of the PrivilegedCommandsHelper into the Contents side bar of PackageMaker. In the Configuration tab, set the Destination path to /Library/PrivilegedHelperTools: You should see that the permissions / ownership you set earlier are reflected in the Contents tab for the PrivilegedCommandsHelper:
- Drag and drop the LaunchDaemon into the Contents side bar of PackageMaker. In the Configuration tab, set the Destination path to /Library/PrivilegedHelperTools: You should see that the permissions / ownership you set earlier are reflected in the Contents tab for the LaunchDaemon:
- Click the Scripts tab for the LaunchDaemon and drag and drop the PostInstall field. The path to the script should be displayed:
- Click Build and save your package with a name: