forked from autopkg/smithjw-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating YAML Recipes for multi-arch apps
- Loading branch information
Showing
21 changed files
with
182 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"python.pythonPath": "/Library/AutoPkg/Python3/Python.framework/Versions/3.7/bin/python3.7" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,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_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' | ||
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/JamfCategoryUploader | ||
Arguments: | ||
category_name: '%CATEGORY%' | ||
|
||
- Processor: com.github.grahampugh.jamf-upload.processors/JamfPackageUploader | ||
Arguments: | ||
pkg_category: '%CATEGORY%' | ||
- Processor: com.github.grahampugh.jamf-upload.processors/JamfPackageUploader | ||
Arguments: | ||
pkg_category: '%CATEGORY%' | ||
|
||
- Processor: StopProcessingIf | ||
Arguments: | ||
predicate: '%UPDATE_PREDICATE%' | ||
- 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/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%' | ||
- Processor: com.github.grahampugh.jamf-upload.processors/JamfPolicyUploader | ||
Arguments: | ||
policy_template: '%POLICY_TEMPLATE%' | ||
policy_name: '%POLICY_NAME%' | ||
icon: '%SELF_SERVICE_ICON%' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<computer_group> | ||
<name>%GROUP_NAME%</name> | ||
<is_smart>True</is_smart> | ||
<criteria> | ||
<criterion> | ||
<name>Architecture Type</name> | ||
<priority>0</priority> | ||
<and_or>and</and_or> | ||
<search_type>is</search_type> | ||
<value>%GROUP_CRITERIA%</value> | ||
</criterion> | ||
</criteria> | ||
</computer_group> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Comment: | | ||
Modify the ARCHITECTURE key and DOWNLOAD_TYPE to determine whether the Intel (x64) or Apple Silicon (arm64) version | ||
of Wireshark is downloaded. Defaults to Intel if not overridden. | ||
Wireshark uses Arm & Intel to distinguish downloads | ||
eg "--key ARCHITECTURE=arm64 --key DOWNLOAD_TYPE=Arm" | ||
Description: Downloads the latest version of Wireshark. | ||
Identifier: com.github.smithjw.download.wireshark | ||
MinimumVersion: '2.3' | ||
|
||
Input: | ||
NAME: Wireshark | ||
ARCHITECTURE: x64 | ||
DOWNLOAD_TYPE: Intel | ||
|
||
Process: | ||
- Processor: URLTextSearcher | ||
Arguments: | ||
re_pattern: (Wireshark([%]20)*.*([%]20)*%DOWNLOAD_TYPE%([%]20)*64.dmg) | ||
request_headers: | ||
User-Agent: Safari 8.0.2 | ||
result_output_var_name: match | ||
url: https://www.wireshark.org/download.html | ||
|
||
- Processor: URLDownloader | ||
Arguments: | ||
filename: '%NAME%-%ARCHITECTURE%.dmg' | ||
url: https://www.wireshark.org/download/osx/%match% | ||
|
||
- Processor: EndOfCheckPhase | ||
|
||
- Processor: CodeSignatureVerifier | ||
Arguments: | ||
input_path: '%pathname%/Wireshark*.app' | ||
requirement: 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] = "7Z6EMTD2C6" |
Oops, something went wrong.