forked from autopkg/smithjw-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGitHub_Desktop.jamf.recipe.yaml
48 lines (42 loc) · 2.04 KB
/
GitHub_Desktop.jamf.recipe.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Comment: GROUP_CRITERIA should be either 'arm64' or 'x86_64'
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_CRITERIA: 'x86_64'
GROUP_NAME: 'Architecture - %ARCHITECTURE%'
GROUP_TEMPLATE: SmartGroup-update-smart.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: 'Install Latest %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%'