Skip to content

Instantly share code, notes, and snippets.

@bryanzak
Created April 17, 2015 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanzak/6aa504c291700b3821ca to your computer and use it in GitHub Desktop.
Save bryanzak/6aa504c291700b3821ca to your computer and use it in GitHub Desktop.
Munki pkginfo for SketchUp Make 2015. This package is a bit out of the ordinary as it has to copy a folder of three apps. This pkg info does that using the OEM downloaded disk image and properly handles uninstalling as well.
<?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>_metadata</key>
<dict>
<key>created_by</key>
<string>epietrb111</string>
<key>creation_date</key>
<date>2015-04-17T16:06:28Z</date>
<key>munki_version</key>
<string>1.0.0.1864</string>
<key>os_version</key>
<string>10.10.3</string>
</dict>
<key>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
<key>description</key>
<string></string>
<key>name</key>
<string>SketchUpMake</string>
<key>display_name</key>
<string>SketchUp Make</string>
<key>installer_item_location</key>
<string>apps/sketchup/SketchUpMake-15.3.dmg</string>
<key>installer_type</key>
<string>copy_from_dmg</string>
<key>installs</key>
<array>
<dict>
<key>CFBundleShortVersionString</key>
<string>15.3</string>
<key>CFBundleVersion</key>
<string>15.3.329</string>
<key>minosversion</key>
<string>10.8.0</string>
<key>path</key>
<string>/Applications/SketchUp 2015/SketchUp.app</string>
<key>type</key>
<string>application</string>
<key>version_comparison_key</key>
<string>CFBundleShortVersionString</string>
</dict>
<dict>
<key>CFBundleShortVersionString</key>
<string>15.3</string>
<key>CFBundleVersion</key>
<string>15.3.329</string>
<key>minosversion</key>
<string>10.8.0</string>
<key>path</key>
<string>/Applications/SketchUp 2015/Style Builder.app</string>
<key>type</key>
<string>application</string>
<key>version_comparison_key</key>
<string>CFBundleShortVersionString</string>
</dict>
<dict>
<key>CFBundleShortVersionString</key>
<string>15.3</string>
<key>CFBundleVersion</key>
<string>15.3.329</string>
<key>minosversion</key>
<string>10.8.0</string>
<key>path</key>
<string>/Applications/SketchUp 2015/LayOut.app</string>
<key>type</key>
<string>application</string>
<key>version_comparison_key</key>
<string>CFBundleShortVersionString</string>
</dict>
</array>
<key>items_to_copy</key>
<array>
<dict>
<key>destination_path</key>
<string>/Applications/SketchUp 2015</string>
<key>source_item</key>
<string>SketchUp 2015/SketchUp.app</string>
</dict>
<dict>
<key>destination_path</key>
<string>/Applications/SketchUp 2015</string>
<key>source_item</key>
<string>SketchUp 2015/LayOut.app</string>
</dict>
<dict>
<key>destination_path</key>
<string>/Applications/SketchUp 2015</string>
<key>source_item</key>
<string>SketchUp 2015/Style Builder.app</string>
</dict>
</array>
<key>minimum_os_version</key>
<string>10.8.0</string>
<key>unattended_install</key>
<true/>
<key>unattended_uninstall</key>
<true/>
<key>uninstall_method</key>
<string>remove_copied_items</string>
<key>uninstallable</key>
<true/>
<key>postuninstall_script</key>
<string>#!/bin/bash
if [ -d "/Applications/SketchUp 2015" ]; then
rm -R "/Applications/SketchUp 2015"
fi
exit 0
</string>
<key>version</key>
<string>15.3</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment