Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Nudge.munki.recipe #15

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 25 additions & 15 deletions Nudge/Nudge.munki.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@
<plist version="1.0">
<dict>
<key>Description</key>
<string>Downloads latest Nudge release and imports into Munki.</string>
<string>Downloads latest Nudge release and imports into Munki.

Set the DERIVE_MIN_OS variable to a non-empty string to set the minimum_os_version via MunkiInstallsItemsCreator. This requires a minimum AutoPkg version of 2.7 please update if you're not already running it.

Set the ESSENTIALS_UNPACK_PATH variable to "/Applications/Utilities" when downloading the Essentials pkg. Leave empty for all others.</string>
<key>Identifier</key>
<string>com.github.erikng.munki.Nudge</string>
<key>Input</key>
<dict>
<key>DERIVE_MIN_OS</key>
<string>YES</string>
<key>ESSENTIALS_UNPACK_PATH</key>
<string></string>
<key>NAME</key>
<string>Nudge</string>
<key>MUNKI_REPO_SUBDIR</key>
Expand Down Expand Up @@ -35,7 +43,7 @@
</dict>
</dict>
<key>MinimumVersion</key>
<string>1.0.0</string>
<string>2.7</string>
<key>ParentRecipe</key>
<string>com.github.erikng.download.Nudge</string>
<key>Process</key>
Expand Down Expand Up @@ -105,23 +113,13 @@
<key>Processor</key>
<string>MunkiPkginfoMerger</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>additional_pkginfo</key>
<dict>
<key>minimum_os_version</key>
<string>11.0</string>
</dict>
</dict>
<key>Processor</key>
<string>MunkiPkginfoMerger</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>faux_root</key>
<string>%RECIPE_CACHE_DIR%/payload</string>
<string>%RECIPE_CACHE_DIR%/payload%ESSENTIALS_UNPACK_PATH%</string>
<key>derive_minimum_os_version</key>
<string>%DERIVE_MIN_OS%</string>
<key>installs_item_paths</key>
<array>
<string>/Applications/Utilities/Nudge.app</string>
Expand All @@ -147,6 +145,18 @@
<key>Processor</key>
<string>MunkiImporter</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>path_list</key>
<array>
<string>%RECIPE_CACHE_DIR%/unpack</string>
<string>%RECIPE_CACHE_DIR%/payload</string>
</array>
</dict>
<key>Processor</key>
<string>PathDeleter</string>
</dict>
</array>
</dict>
</plist>