RingCentral Meetings
Recipe was erroring and taking a heap of time to download.
Grabbed static download url from:
Refactored .munki recipe as the Internet plugins stuff doesn't seem to be needed and can now have the .download as parent
The .pkg and .intstall recipes will need looking at.
MODIFY
RingCentral/RingCentralMeetings.download.recipe
RingCentral/RingCentralMeetings.download.recipe
<dict>
<key>NAME</key>
<string>RingCentral Meetings</string>
+ <key>DOWNLOAD_URL</key>
+ <string>https://downloads.ringcentral.com/RCM/RC/meetings/mac/RCMeetingsClientSetup.pkg</string>
</dict>
<key>MinimumVersion</key>
<string>1.0.1</string>
<key>Process</key>
<array>
<dict>
- <key>Arguments</key>
- <dict>
- <key>re_pattern</key>
- <string>(dn\.ringcentral\.com\/data\/web\/download\/RCMeetings\/[\d]+\/RCMeetingsClientSetup\.pkg)</string>
- <key>result_output_var_name</key>
- <string>download_path</string>
- <key>url</key>
- <string>https://www.ringcentral.com/apps/rc-meetings</string>
- </dict>
<key>Processor</key>
- <string>URLTextSearcher</string>
- </dict>
- <dict>
+ <string>URLDownloader</string>
<key>Arguments</key>
<dict>
<key>url</key>
- <string>http://%download_path%</string>
+ <string>%DOWNLOAD_URL%</string>
+ <key>filename</key>
+ <string>%NAME%.pkg</string>
</dict>
- <key>Processor</key>
- <string>URLDownloader</string>
</dict>
<dict>
<key>Processor</key>
<string>EndOfCheckPhase</string>
</dict>
<dict>
+ <key>Processor</key>
+ <string>CodeSignatureVerifier</string>
<key>Arguments</key>
<dict>
+ <key>input_path</key>
+ <string>%pathname%</string>
<key>expected_authority_names</key>
<array>
<string>Developer ID Installer: RingCentral, Inc. (M932RC5J66)</string>
<string>Developer ID Certification Authority</string>
<string>Apple Root CA</string>
</array>
- <key>input_path</key>
- <string>%pathname%</string>
</dict>
- <key>Processor</key>
- <string>CodeSignatureVerifier</string>
</dict>
</array>
</dict>

MODIFY
RingCentral/RingCentralMeetings.munki.recipe
RingCentral/RingCentralMeetings.munki.recipe
<key>MinimumVersion</key>
<string>1.0.1</string>
<key>ParentRecipe</key>
- <string>com.github.homebysix.pkg.RingCentralMeetings</string>
+ <string>com.github.homebysix.download.RingCentralMeetings</string>
<key>Process</key>
<array>
<dict>
+ <key>Processor</key>
+ <string>FlatPkgUnpacker</string>
+ <key>Arguments</key>
+ <dict>
+ <key>destination_path</key>
+ <string>%RECIPE_CACHE_DIR%/unpack</string>
+ <key>flat_pkg_path</key>
+ <string>%pathname%</string>
+ <key>purge_destination</key>
+ <true/>
+ </dict>
+ </dict>
+ <dict>
+ <key>Processor</key>
+ <string>PkgPayloadUnpacker</string>
+ <key>Arguments</key>
+ <dict>
+ <key>destination_path</key>
+ <string>%RECIPE_CACHE_DIR%/Applications/</string>
+ <key>pkg_payload_path</key>
+ <string>%RECIPE_CACHE_DIR%/unpack/install.pkg/Payload</string>
+ <key>purge_destination</key>
+ <true/>
+ </dict>
+ </dict>
+ <dict>
+ <key>Processor</key>
+ <string>MunkiInstallsItemsCreator</string>
<key>Arguments</key>
<dict>
<key>faux_root</key>
- <string>%RECIPE_CACHE_DIR%/%NAME%</string>
+ <string>%RECIPE_CACHE_DIR%</string>
<key>installs_item_paths</key>
<array>
<string>/Applications/RingCentral Meetings.app</string>
- <string>/Library/Internet Plug-Ins/RingCentralMeetings.plugin</string>
</array>
</dict>
+ </dict>
+ <dict>
<key>Processor</key>
- <string>MunkiInstallsItemsCreator</string>
+ <string>MunkiPkginfoMerger</string>
+ </dict>
+ <dict>
+ <key>Processor</key>
+ <string>Versioner</string>
+ <key>Arguments</key>
+ <dict>
+ <key>input_plist_path</key>
+ <string>%destination_path%/RingCentral Meetings.app/Contents/Info.plist</string>
+ <key>plist_version_key</key>
+ <string>CFBundleShortVersionString</string>
+ </dict>
</dict>
<dict>
<key>Processor</key>
<string>MunkiPkginfoMerger</string>
+ <key>Arguments</key>
+ <dict>
+ <key>additional_pkginfo</key>
+ <dict>
+ <key>version</key>
+ <string>%version%</string>
+ </dict>
+ </dict>
</dict>
<dict>
+ <key>Processor</key>
+ <string>MunkiImporter</string>
<key>Arguments</key>
<dict>
+ <key>pkg_path</key>
+ <string>%pathname%</string>
<key>repo_subdirectory</key>
<string>%MUNKI_REPO_SUBDIR%</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%/Applications</string>
+ <string>%RECIPE_CACHE_DIR%/unpack</string>
+ </array>
+ </dict>
</dict>
</array>
</dict>

RingCentral Meetings

Recipe was erroring and taking a heap of time to download.

Grabbed static download url from: https://support.ringcentral.com/download.html

Refactored .munki recipe as the Internet plugins stuff doesn't seem to be needed and can now have the .download as parent

The .pkg and .intstall recipes will need looking at.