Skip to content
English
  • There are no suggestions because the search field is empty.

Deploy the Mac app with Munki

Use this procedure when you already manage Macs with Munki. Download the ezeep Print App .pkg from Apps & Downloads in the ezeep Admin Portal.

[Step] 1. Import the Print App package with munkiimport and rebuild catalogs

Run munkiimport with the path to your downloaded package. For example:

munkiimport "/path/to/ezeep Print App.pkg"
  1. Set the item and display name to ezeep Print App, the category to Printing, and the developer to ThinPrint GmbH.
  2. Use the version from the package you are importing. Choose the catalog used for your test devices.
  3. Confirm the import and create an icon when prompted.
  4. Rebuild the catalogs when prompted.

If the import produces multiple icons, keep the appropriate icon and rename it ezeep Print App.png in your repository’s icons folder. Run:

makecatalogs

[/Step]

[Step] 2. Add the catalog and app to the target manifest

Open manifestutil and add the catalog and package to your target manifest. The following example uses testing and site_default; replace them with your own names:

manifestutil
add-catalog testing --manifest site_default
add-pkg ezeep\ Print\ App --manifest site_default
exit

On a test Mac, open Managed Software Center and install the available ezeep Print App item.

[/Step]

[Step] 3. Open the Print App on a test Mac, sign in and print

Have the user open the ezeep Print App and sign in. Follow Set up ezeep and print from a Mac to verify the assigned printer and collect a test print.

[/Step]

[Step] 4. Add the post-install script to launch ezeep at the next user sign-in

For a deployment that launches the app at the next user sign-in, save the following as munki_postinstall_script.txt. It creates a helper and a launch agent for existing local users with user IDs in the 500–599 range.

#!/bin/sh
if [ ! -d "/Library/PrivilegedHelperTools" ]; then
mkdir "/Library/PrivilegedHelperTools"
chmod 755 "/Library/PrivilegedHelperTools"
fi
helper="/Library/PrivilegedHelperTools/com.thinprint.ezeep.ezeep-Print-App-launchOncePerUser-helper"
if [ -f "$helper" ]; then
rm "$helper"
fi
cat << EOF > "$helper"
#!/bin/sh
open "/Applications/ezeep Print App.app"
rm ~/Library/LaunchAgents/com.thinprint.ezeep.ezeep-Print-App-launchOnce.plist
EOF
chmod 755 "$helper"
out=$(dscacheutil -q user | grep -A 3 -B 2 -e uid:\ 5'[0-9][0-9]' | grep "dir:" | sed -e 's/dir: //g')
for i in $out; do
j=$(basename "$i")
if [ ! -d "$i/Library/LaunchAgents" ]; then
mkdir "$i/Library/LaunchAgents"
chown "$j" "$i/Library/LaunchAgents"
chmod 755 "$i/Library/LaunchAgents"
fi
cat << EOF > "$i/Library/LaunchAgents/com.thinprint.ezeep.ezeep-Print-App-launchOnce.plist"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key><false/>
<key>Label</key><string>com.thinprint.ezeep.ezeep-Print-App-launchOncePerUser</string>
<key>LimitLoadToSessionType</key>
<array><string>Aqua</string><string>StandardIO</string></array>
<key>ProgramArguments</key>
<array><string>/bin/bash</string><string>$helper</string></array>
<key>RunAtLoad</key><true/>
</dict>
</plist>
EOF
chown "$j" "$i/Library/LaunchAgents/com.thinprint.ezeep.ezeep-Print-App-launchOnce.plist"
chmod 644 "$i/Library/LaunchAgents/com.thinprint.ezeep.ezeep-Print-App-launchOnce.plist"
done
exit 0

Convert the script into the format needed for the package metadata:

/usr/local/munki/makepkginfo --postinstall_script "/path/to/munki_postinstall_script.txt"

Add the generated script string to the package’s pkgsinfo under the postinstall_script key. Retain the package’s existing receipt and version information. Set unattended_install to true, unattended_uninstall to false, uninstall_method to removepackages, uninstallable to true, and RestartAction to RequireRestart.

After updating pkgsinfo, rebuild the catalogs:

/usr/local/munki/makecatalogs

Test the sign-in and printing sequence on a managed Mac before deploying to all users.

[/Step]