Description
Some apps may not support direct installation via pkg or dmg. The following workflow can be utilized to deploy a .app file with Composer and Jamf Pro.
Deploying Your .app File with Composer
Create the new folder for the application.
Open Finder and click Go to Folder.
Type
/private/tmp
and create a New Folder with the desired Name.Drag and Drop the needed pkg into that new folder.
Open Composer and drag & drop the folder into the Source column on the left in Composer; this should create a new Source within Composer.
Verify the package has the directory /private/tmp and that everything needed is included.
Set the privileges on the package.
Ensure the Owner is listed as "root" and the Group is listed as "Wheel" on the bottom-right of Composer.
Click on the private directory on the top and then the three dots on the bottom right and click Apply Owner and Group to "Folder Name" and All Enclosed Items and also Apply Permissions to Users and All Enclosed Items.
On the left in Composer, open the down arrow of the package name folder. Then right click on Scripts and select Add Shell Script, and choose postinstall.
Within the postinstall script, add the following command but changing the /path/to/file to /private/tmp/YourPackageNameHere (the absolute path can be found by opening Terminal and dragging the pkg into the Terminal window):
installer -pkg /path/to/file -target /
Click Build as PKG and save it to the Desktop.
Upload it to Jamf Pro and deploy it only to a test computer via a Jamf Pro policy.