Skip to content

Commit

Permalink
Recipe Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
smithjw committed Nov 25, 2021
1 parent 1a6cbdf commit f825045
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 21 deletions.
35 changes: 19 additions & 16 deletions GitHub/GitHub_Desktop.download.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,26 @@ Input:
DOWNLOAD_URL: 'https://central.github.com/deployments/desktop/desktop/latest/darwin'

Process:
- Processor: URLDownloader
Arguments:
filename: '%SOFTWARE_TITLE%-%ARCHITECTURE%.zip'
url: '%DOWNLOAD_URL%'
- Processor: URLDownloader
Arguments:
filename: '%SOFTWARE_TITLE%-%ARCHITECTURE%.zip'
url: '%DOWNLOAD_URL%'

- Processor: Unarchiver
Arguments:
destination_path: '%RECIPE_CACHE_DIR%/unpack'
purge_destination: true
- Processor: PkgRootCreator
Arguments:
pkgdirs: {}
pkgroot: '%RECIPE_CACHE_DIR%/unpack'

- 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: Unarchiver
Arguments:
destination_path: '%RECIPE_CACHE_DIR%/unpack'

- Processor: Versioner
Arguments:
input_plist_path: '%RECIPE_CACHE_DIR%/unpack/%NAME%.app/Contents/Info.plist'
plist_version_key: CFBundleShortVersionString
- 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
8 changes: 7 additions & 1 deletion Slack/Slack.jamf.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ Input:
UPDATE_PREDICATE: 'pkg_uploaded == False'

Process:
- Processor: PathDeleter
# Cleanup parent pkg recipe
Arguments:
path_list:
- '%RECIPE_CACHE_DIR%/%NAME%'

- Processor: com.github.grahampugh.jamf-upload.processors/JamfCategoryUploader
Arguments:
category_name: '%CATEGORY%'
Expand All @@ -43,4 +49,4 @@ Process:
Arguments:
policy_template: '%POLICY_TEMPLATE%'
policy_name: '%POLICY_NAME%'
icon: '%SELF_SERVICE_ICON%'
icon: '%SELF_SERVICE_ICON%'
8 changes: 4 additions & 4 deletions Xcode/Xcode.jamf.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ Process:
Arguments:
category_name: '%CATEGORY%'

- Processor: com.github.grahampugh.jamf-upload.processors/JamfPackageUploader
Arguments:
pkg_category: '%CATEGORY%'

- Processor: com.github.grahampugh.jamf-upload.processors/JamfScriptUploader
Arguments:
script_category: '%SELF_SERVICE_CATEGORY%'
script_path: '%SCRIPT_NAME%'
script_priority: '%SCRIPT_PRIORITY%'
script_parameter4: '%SCRIPT_PARAMETER4_TITLE%'

- Processor: com.github.grahampugh.jamf-upload.processors/JamfPackageUploader
Arguments:
pkg_category: '%CATEGORY%'

- Processor: StopProcessingIf
Arguments:
predicate: '%UPDATE_PREDICATE%'
Expand Down

0 comments on commit f825045

Please sign in to comment.