diff --git a/Cisco/Webex.download.recipe.yaml b/Cisco/Webex.download.recipe.yaml index bb941b6..f2a7990 100644 --- a/Cisco/Webex.download.recipe.yaml +++ b/Cisco/Webex.download.recipe.yaml @@ -1,5 +1,5 @@ Comment: | - Modify the ARCHITECTURE key and DOWNLOAD_TYPE to determine whether the Intel (amd64) or Apple Silicon (arm64) version + Modify the ARCHITECTURE key and DOWNLOAD_TYPE to determine whether the Intel (x64) or Apple Silicon (arm64) version of Webex is downloaded. Defaults to Intel if not overridden. eg "--key ARCHITECTURE=arm64" Intel: WebexTeamsDesktop-MACOS-Gold @@ -12,7 +12,7 @@ MinimumVersion: '2.3' Input: NAME: Webex - ARCHITECTURE: amd64 + ARCHITECTURE: x64 DOWNLOAD_TYPE: WebexTeamsDesktop-MACOS-Gold Process: diff --git a/Cisco/Webex.jamf.recipe.yaml b/Cisco/Webex.jamf.recipe.yaml index f8db545..67faf46 100644 --- a/Cisco/Webex.jamf.recipe.yaml +++ b/Cisco/Webex.jamf.recipe.yaml @@ -11,9 +11,9 @@ Input: TESTING_GROUP_NAME: Testing POLICY_CATEGORY: Testing POLICY_TEMPLATE: Policy-install-latest.xml - POLICY_NAME: 'Install Latest %NAME%' + POLICY_NAME: 'Install Latest %NAME% (%ARCHITECTURE%)' 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_DISPLAY_NAME: '%POLICY_NAME%' SELF_SERVICE_DESCRIPTION: 'Make teamwork your best work.' SELF_SERVICE_ICON: '%SOFTWARE_TITLE%.png' SOFTWARE_TITLE: '%NAME%' diff --git a/Cisco/Webex.pkg.recipe.yaml b/Cisco/Webex.pkg.recipe.yaml index 0f496ff..a9ea7af 100644 --- a/Cisco/Webex.pkg.recipe.yaml +++ b/Cisco/Webex.pkg.recipe.yaml @@ -1,11 +1,3 @@ -Comment: | - Modify the ARCHITECTURE key and DOWNLOAD_TYPE to determine whether the Intel (amd64) or Apple Silicon (arm64) version - of Webex is downloaded. Defaults to Intel if not overridden. - eg "--key ARCHITECTURE=arm64" - Intel: WebexTeamsDesktop-MACOS-Gold - Apple Silicon: WebexDesktop-MACOS-Apple-Silicon-Gold - https://binaries.webex.com/WebexDesktop-MACOS-Apple-Silicon-Gold/Webex.dmg - https://binaries.webex.com/WebexTeamsDesktop-MACOS-Gold/Webex.dmg Description: Downloads the latest version of Webex and creates a package. Identifier: com.github.smithjw.pkg.webex ParentRecipe: com.github.smithjw.download.webex diff --git a/GitHub/GitHub_Desktop.download.recipe.yaml b/GitHub/GitHub_Desktop.download.recipe.yaml new file mode 100644 index 0000000..59dbc7e --- /dev/null +++ b/GitHub/GitHub_Desktop.download.recipe.yaml @@ -0,0 +1,40 @@ +Comment: | + Modify the ARCHITECTURE key and DOWNLOAD_URL to determine whether the Intel (amd64) or Apple Silicon (arm64) version + of Webex is downloaded. Defaults to Intel if not overridden. + eg "--key ARCHITECTURE=arm64" + Intel: + x64 & https://central.github.com/deployments/desktop/desktop/latest/darwin + Apple Silicon: + arm64 & https://central.github.com/deployments/desktop/desktop/latest/darwin-arm64 + +Description: Downloads the latest version of GitHub Desktop. +Identifier: com.github.smithjw.download.github_desktop +MinimumVersion: '2.3' + +Input: + NAME: GitHub Desktop + SOFTWARE_TITLE: GitHub_Desktop + ARCHITECTURE: x64 + DOWNLOAD_URL: 'https://central.github.com/deployments/desktop/desktop/latest/darwin' + +Process: +- Processor: URLDownloader + Arguments: + filename: '%SOFTWARE_TITLE%-%ARCHITECTURE%.zip' + url: '%DOWNLOAD_URL%' + +- Processor: Unarchiver + Arguments: + destination_path: '%RECIPE_CACHE_DIR%/unpack' + purge_destination: true + +- Processor: CodeSignatureVerifier + Arguments: + input_path: '%RECIPE_CACHE_DIR%/unpack/%NAME%.app' + requirement: '(identifier "com.github.GitHub" or identifier "com.github.GHAskPass") and anchor apple generic and certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = VEKTX9H2N7' + +- Processor: Versioner + Arguments: + input_plist_path: '%RECIPE_CACHE_DIR%/unpack/%NAME%.app/Contents/Info.plist' + plist_version_key: CFBundleShortVersionString + diff --git a/GitHub/GitHub_Desktop.install.recipe.yaml b/GitHub/GitHub_Desktop.install.recipe.yaml new file mode 100644 index 0000000..79f0090 --- /dev/null +++ b/GitHub/GitHub_Desktop.install.recipe.yaml @@ -0,0 +1,11 @@ +Description: Downloads the latest version of GitHub Desktop, packages it, then installs. +Identifier: com.github.smithjw.install.github_desktop +ParentRecipe: com.github.smithjw.sign.github_desktop +MinimumVersion: '2.3' + +Input: + NAME: GitHub Desktop + SOFTWARE_TITLE: GitHub_Desktop + +Process: +- Processor: Installer diff --git a/GitHub/GitHub_Desktop.jamf.recipe.yaml b/GitHub/GitHub_Desktop.jamf.recipe.yaml new file mode 100644 index 0000000..9c94c91 --- /dev/null +++ b/GitHub/GitHub_Desktop.jamf.recipe.yaml @@ -0,0 +1,46 @@ +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.github_desktop +ParentRecipe: com.github.smithjw.sign.github_desktop +MinimumVersion: '2.3' + +Input: + NAME: GitHub Desktop + CATEGORY: Collaboration + GROUP_NAME: '%NAME%-update-smart' + GROUP_TEMPLATE: SmartGroup-update-smart-regex.xml + TESTING_GROUP_NAME: Testing + POLICY_CATEGORY: Testing + POLICY_TEMPLATE: Policy-install-latest.xml + POLICY_NAME: 'Install Latest %NAME% (%ARCHITECTURE%)' + POLICY_RUN_COMMAND: 'chown -R "$(stat -f%Su /dev/console):staff" "/Applications/%NAME%.app" && echo "Corrected permissions for %NAME%."' + SELF_SERVICE_DISPLAY_NAME: '%POLICY_NAME%' + SELF_SERVICE_DESCRIPTION: 'Focus on what matters instead of fighting with Git. Whether you're new to Git or a seasoned user, GitHub Desktop simplifies your development workflow.' + SELF_SERVICE_ICON: '%SOFTWARE_TITLE%.png' + SOFTWARE_TITLE: 'GitHub_Desktop' + INSTALL_BUTTON_TEXT: 'Install' + REINSTALL_BUTTON_TEXT: 'Install' + UPDATE_PREDICATE: 'pkg_uploaded == False' + +Process: + - Processor: com.github.grahampugh.jamf-upload.processors/JamfCategoryUploader + Arguments: + category_name: '%CATEGORY%' + + - Processor: com.github.grahampugh.jamf-upload.processors/JamfPackageUploader + Arguments: + pkg_category: '%CATEGORY%' + + - Processor: StopProcessingIf + Arguments: + predicate: '%UPDATE_PREDICATE%' + + - Processor: com.github.grahampugh.jamf-upload.processors/JamfComputerGroupUploader + Arguments: + computergroup_template: '%GROUP_TEMPLATE%' + computergroup_name: '%GROUP_NAME%' + + - Processor: com.github.grahampugh.jamf-upload.processors/JamfPolicyUploader + Arguments: + policy_template: '%POLICY_TEMPLATE%' + policy_name: '%POLICY_NAME%' + icon: '%SELF_SERVICE_ICON%' \ No newline at end of file diff --git a/GitHub/GitHub_Desktop.pkg.recipe.yaml b/GitHub/GitHub_Desktop.pkg.recipe.yaml new file mode 100644 index 0000000..fa01ae0 --- /dev/null +++ b/GitHub/GitHub_Desktop.pkg.recipe.yaml @@ -0,0 +1,20 @@ +Description: Downloads the latest version of GitHub Desktop and creates a package. +Identifier: com.github.smithjw.pkg.github_desktop +ParentRecipe: com.github.smithjw.download.github_desktop +MinimumVersion: '2.3' + +Input: + NAME: GitHub Desktop + SOFTWARE_TITLE: GitHub_Desktop + +Process: +- Processor: AppPkgCreator + Arguments: + app_path: '%RECIPE_CACHE_DIR%/unpack/%NAME%.app' + pkg_path: '%RECIPE_CACHE_DIR%/%SOFTWARE_TITLE%-%ARCHITECTURE%-%version%.pkg' + +- Processor: PathDeleter + Arguments: + path_list: + - '%RECIPE_CACHE_DIR%/unpack' + - '%RECIPE_CACHE_DIR%/payload' \ No newline at end of file diff --git a/GitHub/GitHub_Desktop.png b/GitHub/GitHub_Desktop.png new file mode 100644 index 0000000..4c5ae55 Binary files /dev/null and b/GitHub/GitHub_Desktop.png differ diff --git a/GitHub/GitHub_Desktop.sign.recipe.yaml b/GitHub/GitHub_Desktop.sign.recipe.yaml new file mode 100644 index 0000000..f688c4b --- /dev/null +++ b/GitHub/GitHub_Desktop.sign.recipe.yaml @@ -0,0 +1,19 @@ +Description: Downloads the latest version of GitHub Desktop, creates a package, then signs it. +Identifier: com.github.smithjw.sign.github_desktop +ParentRecipe: com.github.smithjw.pkg.github_desktop +MinimumVersion: '2.3' + +Input: + SIGNING_CERTIFICATE: Override_This_Value + +Process: + +- Processor: com.github.rtrouton.SharedProcessors/PkgSigner + Arguments: + pkg_path: '%RECIPE_CACHE_DIR%/%SOFTWARE_TITLE%-%ARCHITECTURE%-%version%.pkg' + signing_cert: '%SIGNING_CERTIFICATE%' + +- Processor: PathDeleter + Arguments: + path_list: + - '%RECIPE_CACHE_DIR%/%SOFTWARE_TITLE%-%ARCHITECTURE%-%version%-unsigned.pkg'