Skip to content

Compiling from source with make_munki_mpkg_from_git.sh

sethgoldin edited this page Jan 4, 2021 · 3 revisions

make_munki_mpkg_from_git.sh is a script included in /munki/code/tools/ that can be used to check out the Munki source from GitHub and then build a distribution package.

When running make_munki_mpkg_from_git.sh, a number of flags are available for different options.

SYNOPSIS
    % sh make_munki_mpkg_from_git.sh [-b branch ] [-r revision] [make_munki_mpkg.sh options]

MAIN OPTIONS
    -b branch   Git branch to clone (main is the default)
    -r revision Git revision to check out (HEAD is the default)

OPTIONS for make_munki_mpkg.sh 
    The remaining options are passed to make_munki_pkg.sh:

    -i id       Specify the base package bundle ID
    -o dir      Specify the output directory
    -n orgname  Specify the name of the organization
    -p          Build Python.framework even if one exists
    -B          Include a package that sets Munki's bootstrap mode
    -m          Build the package in a manner suitable for install via MDM;
                specifically, attempt to start all the launchd agents and
                daemons without requiring a restart. Such a package is not
                suited for upgrade installs or install via Munki itself.
    -c plist    Build a configuration package using the preferences defined in a
                plist file
    -R          Include a pkg to install Rosetta2 on ARM-based hardware.
    -s cert_cn  Sign distribution package with a Developer ID Installer
                certificate from keychain. Provide the certificate's Common
                Name. Ex: "Developer ID Installer: Munki (U8PN57A5N2)"
    -S cert_cn  Sign apps with a Developer ID Application certificated from
                keychain. Provide the certificate's Common Name.
                Ex: "Developer ID Application: Munki (U8PN57A5N2)"

Introduction

Munki 6.1

Munki 6

Munki 5

Managed Software Center

Command-line Tools

Munki configuration

Manifests

Catalogs

Pkginfo

More Munki Features

Advanced Munki

Related tasks

More

Product-specific notes

Legacy Documentation

Clone this wiki locally