Created
December 9, 2022 23:42
-
-
Save rtrouton/47e2c0de067992a56dff6a7cab378dbd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>Description</key> | |
<string>Downloads the latest version of Palo Alto's GlobalProtect installer package and renames the package with version. Requires the use of HOSTNAME to point at your GlobalProtect instance. Use pkg_path in parent recipes for package with version.</string> | |
<key>Identifier</key> | |
<string>com.company.pkg.GlobalProtect</string> | |
<key>Input</key> | |
<dict> | |
<key>NAME</key> | |
<string>GlobalProtect</string> | |
<key>VENDOR</key> | |
<string>PaloAlto</string> | |
<key>SOFTWARETITLE</key> | |
<string>GlobalProtect</string> | |
</dict> | |
<key>MinimumVersion</key> | |
<string>1.0.0</string> | |
<key>ParentRecipe</key> | |
<string>com.company.download.GlobalProtect</string> | |
<key>Process</key> | |
<array> | |
<dict> | |
<key>Arguments</key> | |
<dict> | |
<key>destination_path</key> | |
<string>%RECIPE_CACHE_DIR%/unpack</string> | |
<key>flat_pkg_path</key> | |
<string>%pathname%</string> | |
</dict> | |
<key>Processor</key> | |
<string>FlatPkgUnpacker</string> | |
</dict> | |
<dict> | |
<key>Arguments</key> | |
<dict> | |
<key>pattern</key> | |
<string>%RECIPE_CACHE_DIR%/unpack/*gp.pkg</string> | |
</dict> | |
<key>Processor</key> | |
<string>FileFinder</string> | |
</dict> | |
<dict> | |
<key>Arguments</key> | |
<dict> | |
<key>destination_path</key> | |
<string>%RECIPE_CACHE_DIR%/payload/GlobalProtect.app</string> | |
<key>pkg_payload_path</key> | |
<string>%found_filename%/Payload</string> | |
</dict> | |
<key>Processor</key> | |
<string>PkgPayloadUnpacker</string> | |
</dict> | |
<dict> | |
<key>Arguments</key> | |
<dict> | |
<key>input_plist_path</key> | |
<string>%RECIPE_CACHE_DIR%/payload/GlobalProtect.app/Contents/Info.plist</string> | |
<key>plist_version_key</key> | |
<string>CFBundleShortVersionString</string> | |
</dict> | |
<key>Processor</key> | |
<string>Versioner</string> | |
</dict> | |
<dict> | |
<key>Processor</key> | |
<string>PkgCopier</string> | |
<key>Arguments</key> | |
<dict> | |
<key>source_pkg</key> | |
<string>%pathname%</string> | |
<key>pkg_path</key> | |
<string>%RECIPE_CACHE_DIR%/%VENDOR%_%SOFTWARETITLE%_%version%.pkg</string> | |
</dict> | |
</dict> | |
<dict> | |
<key>Processor</key> | |
<string>PathDeleter</string> | |
<key>Arguments</key> | |
<dict> | |
<key>path_list</key> | |
<array> | |
<string>%RECIPE_CACHE_DIR%/unpack</string> | |
<string>%RECIPE_CACHE_DIR%/payload</string> | |
</array> | |
</dict> | |
</dict> | |
</array> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment