Building Munki packages

Greg Neagle edited this page Oct 18, 2018 · 4 revisions

Building a Munki Installer Package

Milestone releases of the Munki tools are made available here: https://github.com/munki/munki/releases

Automated builds of the Munki installer packages are available at https://munkibuilds.org. These are not official builds, but are made available by a friendly third party.

Building it yourself

You can also build a Munki installer package yourself.

Requirements

Xcode -- the current build scripts are known to work under Xcode 9, and to fail under Xcode 10. They should work under Xcode 8.
git (which you get for "free" when you install Xcode...)

Procedure

In a directory you can write to, run:

git clone https://github.com/munki/munki This will create a new "munki" directory containing the latest git repo. Change into the directory:

cd munki

Run the build script:

./code/tools/make_munki_mpkg.sh

Provide your password when requested (certain steps require sudo).

If the script runs successfully, it will tell you where to find the Installer package:

Distribution package created at /Users/Shared/munki-git/munki/munkitools-3.0.0.3333.pkg.

Building other versions of Munki

You can also build other versions of Munki using the make_munki_mpkg_from_git.sh script.

./code/tools/make_munki_mpkg_from_git.sh -b Munki2 will build the latest (now final) Munki 2 package.

./code/tools/make_munki_mpkg_from_git.sh -b Munki1 will build the latest (now final) Munki 1 package.

You may need an older version of Xcode to successfully build the applications included with Munki 1 and Munki 2, and/or access to older OS X SDKs. Almost certainly this is not worth the effort and you should stick with a pre-built package from the Releases section.

./code/tools/make_munki_mpkg_from_git.sh -b BRANCHNAME will build Munki based on the code in BRANCHNAME.

./code/tools/make_munki_mpkg_from_git.sh -r GIT_REVISION_HASH will build Munki based on the code in a particular Git commit (revision).

Introduction

Munki 3

Managed Software Center

Command-line Tools

Munki configuration

Manifests

Catalogs

Pkginfo

Advanced Munki

Related tasks

More

Product-specific notes

Legacy Documentation

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.