A set of common functions used for enterprise Mac Packaging with Munki.
-
Download the script or clone this repository in oh-my-zsh plugins directory:
cd ~/.oh-my-zsh/custom/plugins git clone git://github.com/temikus/mac-packaging.git
-
Activate the plugin in
~/.zshrc
:plugins=( [plugins...] mac-packaging [plugins...])
-
Source
~/.zshrc
to take changes into account:source ~/.zshrc
Add antigen bundle temikus/mac-packaging
to your .zshrc where you're adding your other plugins. Antigen will clone the plugin for you and add it to your antigen setup the next time you start a new shell.
-
mkdmg - Makes a Munki-compatible DMG file out of an .app or pkg file and creates a manifest.
makedmg foo.[app|pkg]
-
mkmanifest - Generates a Munki manifest for a DMG file.
mkmanifest foo.dmg
-
check_appleid - prints unique user id for AppStore applications. Used to identify what user downloaded the application from the AppStore.
check_appleid foo.app
Plugin assumes that Munki tools are available in PATH:
export PATH=$PATH:/usr/local/munki