ParallelsDesktop.munki.recipe
Changed recipe to use  the .pkg as the parent, as the postinstall
correctly installs Parallels Desktop 13
MODIFY
Parallels/ParallelsDesktop.munki.recipe
Parallels/ParallelsDesktop.munki.recipe
<string>Virtualization tool for running Windows apps without rebooting.</string>
<key>developer</key>
<string>Parallels, Inc.</string>
+ <key>minimum_os_version</key>
+ <string>10.10</string>
<key>display_name</key>
<string>Parallels Desktop</string>
<key>name</key>
<string>%NAME%</string>
- <key>postinstall_script</key>
- <string>#!/bin/bash
-chflags nohidden "/Applications/Parallels Desktop.app"
- </string>
<key>unattended_install</key>
<true/>
+ <key>uninstall_method</key>
+ <string>uninstall_script</string>
+ <key>uninstall_script</key>
+ <string>#!/bin/bash
+
+# App bundle to remove
+app_Bundle="/Applications/Parallels Desktop.app/"
+
+if [ -d "${app_Bundle}" ]
+then
+ /bin/echo "Found ${app_Bundle}, removing..."
+ /bin/rm -rf "${app_Bundle}"
+fi
+
+# Remove the pkg receipt
+pkgReceipt="com.parallels.desktop.installer"
+
+/bin/echo "Removing ${pkgReceipt}, removing..."
+pkgutil --forget "${pkgReceipt}"</string>
</dict>
</dict>
<key>MinimumVersion</key>
<string>0.6.1</string>
<key>ParentRecipe</key>
- <string>com.github.homebysix.download.ParallelsDesktop</string>
+ <string>com.github.homebysix.pkg.ParallelsDesktop</string>
<key>Process</key>
<array>
<dict>
+ <key>Processor</key>
+ <string>Copier</string>
<key>Arguments</key>
<dict>
<key>destination_path</key>
- <string>%RECIPE_CACHE_DIR%/%NAME%/Parallels Desktop.app</string>
+ <string>%RECIPE_CACHE_DIR%/%NAME%/Applications/Parallels Desktop.app</string>
<key>overwrite</key>
<true/>
<key>source_path</key>
<string>%pathname%/Parallels Desktop.app</string>
</dict>
- <key>Processor</key>
- <string>Copier</string>
</dict>
<dict>
+ <key>Processor</key>
+ <string>MunkiInstallsItemsCreator</string>
<key>Arguments</key>
<dict>
- <key>dmg_path</key>
- <string>%RECIPE_CACHE_DIR%/%NAME%-%version%.dmg</string>
- <key>dmg_root</key>
- <string>%RECIPE_CACHE_DIR%/%NAME%</string>
+ <key>faux_root</key>
+ <string>%RECIPE_CACHE_DIR%/%NAME%/</string>
+ <key>installs_item_paths</key>
+ <array>
+ <string>/Applications/Parallels Desktop.app</string>
+ </array>
+ </dict>
</dict>
+ <dict>
<key>Processor</key>
- <string>DmgCreator</string>
+ <string>MunkiPkginfoMerger</string>
</dict>
<dict>
+ <key>Processor</key>
+ <string>MunkiImporter</string>
<key>Arguments</key>
<dict>
<key>pkg_path</key>
- <string>%dmg_path%</string>
+ <string>%pkg_path%</string>
<key>repo_subdirectory</key>
<string>%MUNKI_REPO_SUBDIR%</string>
- <key>version_comparison_key</key>
- <string>CFBundleShortVersionString</string>
</dict>
+ </dict>
+ <dict>
<key>Processor</key>
- <string>MunkiImporter</string>
+ <string>PathDeleter</string>
+ <key>Arguments</key>
+ <dict>
+ <key>path_list</key>
+ <array>
+ <string>%RECIPE_CACHE_DIR%/%NAME%</string>
+ </array>
+ </dict>
</dict>
</array>
</dict>

ParallelsDesktop.munki.recipe

Changed recipe to use  the .pkg as the parent, as the postinstall
correctly installs Parallels Desktop 13