Skip to content

Commit

Permalink
Updated Zoom Recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
smithjw committed Nov 22, 2021
1 parent e6ffc60 commit d3be7b6
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 11 deletions.
7 changes: 0 additions & 7 deletions Zoom/ZoomIT.download.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
<string>Zoom Client for IT</string>
<key>DOWNLOAD_URL</key>
<string>https://zoom.us/client/latest/ZoomInstallerIT.pkg</string>
<key>USER_AGENT</key>
<string>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/536.28.10 (KHTML, like Gecko) Version/6.0.3 Safari/536.28.10</string>
</dict>
<key>MinimumVersion</key>
<string>0.2.0</string>
Expand All @@ -26,11 +24,6 @@
<dict>
<key>url</key>
<string>%DOWNLOAD_URL%</string>
<key>request_headers</key>
<dict>
<key>user-agent</key>
<string>%USER_AGENT%</string>
</dict>
<key>filename</key>
<string>%NAME%.pkg</string>
</dict>
Expand Down
23 changes: 23 additions & 0 deletions Zoom/Zoom_IT.download.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Description: Downloads the latest version of the Zoom client for IT Administrators.
Identifier: com.github.smithjw.download.zoom_it
MinimumVersion: '2.3'

Input:
NAME: Zoom
DOWNLOAD_URL: https://zoom.us/client/latest/ZoomInstallerIT.pkg

Process:
- Processor: URLDownloader
Arguments:
filename: '%NAME%.pkg'
url: '%DOWNLOAD_URL%'

- Processor: EndOfCheckPhase

- Processor: CodeSignatureVerifier
Arguments:
expected_authority_names:
- 'Developer ID Installer: Zoom Video Communications, Inc. (BJ4HAAB9B3)'
- Developer ID Certification Authority
- Apple Root CA
input_path: '%pathname%'
8 changes: 4 additions & 4 deletions Zoom/Zoom_IT.jamf.recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Description: Downloads the latest version and makes a pkg. Then, uploads the package to the Jamf Pro Server and creates a Self Service Policy and Smart Group.
Identifier: com.github.smithjw.jamf.zoom_it
ParentRecipe: com.github.smithjw.download.ZoomIT
ParentRecipe: com.github.smithjw.pkg.zoom_it
MinimumVersion: '2.3'

Input:
Expand All @@ -14,11 +14,11 @@ Input:
POLICY_NAME: 'Install Latest %NAME%'
POLICY_RUN_COMMAND: 'chown -R "$(stat -f%Su /dev/console):staff" "/Applications/%NAME%.app" && echo "Corrected permissions for %NAME%."'
SELF_SERVICE_DISPLAY_NAME: 'Install Latest %NAME%'
SELF_SERVICE_DESCRIPTION: 'Plantronics Hub for Mac, part of the Plantronics software portfolio, is a client application that allows users to control the settings on their Plantronics.'
SELF_SERVICE_ICON: '%SOFTWARE_TITLE%.png'
SELF_SERVICE_DESCRIPTION: 'The Zoom app provides cloud-hosted video conferencing, plus online meetings and group messaging.'
SELF_SERVICE_ICON: '%NAME%.png'
SOFTWARE_TITLE: '%NAME%'
INSTALL_BUTTON_TEXT: 'Install'
REINSTALL_BUTTON_TEXT: 'Install'
REINSTALL_BUTTON_TEXT: 'Reinstall'
UPDATE_PREDICATE: 'pkg_uploaded == False'

Process:
Expand Down
36 changes: 36 additions & 0 deletions Zoom/Zoom_IT.pkg.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Description: Downloads the latest version of the Zoom client for IT Administrators.
Identifier: com.github.smithjw.pkg.zoom_it
ParentRecipe: com.github.smithjw.download.zoom_it
MinimumVersion: '2.3'

Input:
NAME: Zoom

Process:
- Processor: FlatPkgUnpacker
Arguments:
destination_path: '%RECIPE_CACHE_DIR%/expand'
flat_pkg_path: '%pathname%'

- Processor: PkgPayloadUnpacker
Arguments:
destination_path: '%RECIPE_CACHE_DIR%/unpack'
pkg_payload_path: '%RECIPE_CACHE_DIR%/expand/zoomus.pkg/Payload'

- Processor: Versioner
Arguments:
input_plist_path: '%RECIPE_CACHE_DIR%/unpack/zoom.us.app/Contents/Info.plist'
plist_version_key: CFBundleShortVersionString

- Processor: com.github.homebysix.VersionSplitter/VersionSplitter

- Processor: PkgCopier
Arguments:
pkg_path: '%RECIPE_CACHE_DIR%/%NAME%-%version%.pkg'
source_pkg: '%pathname%'

- Processor: PathDeleter
Arguments:
path_list:
- '%RECIPE_CACHE_DIR%/unpack'
- '%RECIPE_CACHE_DIR%/expand'

0 comments on commit d3be7b6

Please sign in to comment.