Skip to content

Commit

Permalink
Added Colour Contrast Analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
David Pirie committed Feb 19, 2024
1 parent fcdf621 commit 7645010
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 0 deletions.
29 changes: 29 additions & 0 deletions TPGi/ColourContrastAnalyzer.download.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Description: |
Downloads the latest release of TPGi Colour Contrast Analyzer as a dmg,
verifies the signature and extracts the version.
Identifier: com.github.davidbpirie.download.ColourContrastAnalyzer
MinimumVersion: 2.3.0

Input:
NAME: ColourContrastAnalyzer

Process:
- Processor: GitHubReleasesInfoProvider
Arguments:
github_repo: ThePacielloGroup/CCAe
asset_regex: .*\.dmg$

- Processor: URLDownloader
Arguments:
filename: '%NAME%-%version%.dmg'

- Processor: EndOfCheckPhase

- Processor: AppDmgVersioner
Arguments:
dmg_path: '%pathname%'

- Processor: CodeSignatureVerifier
Arguments:
input_path: '%pathname%/%app_name%'
requirement: identifier "com.electron.cca" and 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] = "34RS4UC3M6"
46 changes: 46 additions & 0 deletions TPGi/ColourContrastAnalyzer.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
Description: |
Downloads the latest release of TPGi Colour Contrast Analyzer as a dmg,
verifies the signature and extracts the version, generates a pkg, then
uploads the package to Jamf Pro. The generated pkg is then deleted.
JSS_URL, API_USERNAME, and API_PASSWORD, and for non-cloud instances
SMB_URL, SMB_USERNAME and SMB_PASSWORD, are expected to be populated
in your AutoPkg preferences, override Input variables, or by
command-line keys.
Identifier: com.github.davidbpirie.jamf-upload.ColourContrastAnalyzer
MinimumVersion: 2.3.0
ParentRecipe: com.github.davidbpirie.pkg.ColourContrastAnalyzer

Input:
NAME: ColourContrastAnalyzer
JAMF_CATEGORY: Utilities
JAMF_PKG_NAME: '%NAME%'
JAMF_PKG_INFO: Use TPGi's free colour contrast checker to optimize your content - including text and visual elements - for individuals with color-blindness or low vision impairments.
JAMF_PKG_NOTES: 'Generated and uploaded by AutoPkg'
JAMF_PKG_PRIORITY: '10'
JAMF_PKG_REBOOT_REQUIRED: 'False'
JAMF_PKG_OS_REQUIREMENTS: ''
JAMF_PKG_REQUIRED_PROCESSOR: None
JAMF_PKG_SEND_NOTIFICATION: 'False'
JAMF_PKG_REPLACE: 'False'
JAMF_PKG_REPLACE_METADATA: 'False'

Process:
- Processor: com.github.grahampugh.jamf-upload.processors/JamfPackageUploader
Arguments:
pkg_name: '%JAMF_PKG_NAME%-%version%.pkg'
pkg_category: '%JAMF_CATEGORY%'
pkg_info: '%JAMF_PKG_INFO%'
pkg_notes: '%JAMF_PKG_NOTES%'
pkg_priority: '%JAMF_PKG_PRIORITY%'
reboot_required: '%JAMF_PKG_REBOOT_REQUIRED%'
os_requirements: '%JAMF_PKG_OS_REQUIREMENTS%'
required_processor: '%JAMF_PKG_REQUIRED_PROCESSOR%'
send_notification: '%JAMF_PKG_SEND_NOTIFICATION%'
replace_pkg: '%JAMF_PKG_REPLACE%'
replace_pkg_metadata: '%JAMF_PKG_REPLACE_METADATA%'

- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
14 changes: 14 additions & 0 deletions TPGi/ColourContrastAnalyzer.pkg.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Description: |
Downloads the latest release of TPGi Colour Contrast Analyzer as a dmg,
verifies the signature and extracts the version, then generates a pkg.
Identifier: com.github.davidbpirie.pkg.ColourContrastAnalyzer
ParentRecipe: com.github.davidbpirie.download.ColourContrastAnalyzer
MinimumVersion: 2.3.0

Input:
NAME: ColourContrastAnalyzer

Process:
- Processor: AppPkgCreator
Arguments:
app_path: '%pathname%/%app_name%'

0 comments on commit 7645010

Please sign in to comment.