Skip to content

Commit

Permalink
Musition 7 Cloud recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
David Pirie committed Nov 12, 2024
1 parent 9b220f6 commit abed3ff
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Rising Software/Musition7Cloud.download.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Description: |
Downloads the latest version of Musition 7 Cloud as a pkg,
then verifies the code signature.
Identifier: com.github.davidbpirie.download.Musition7Cloud
MinimumVersion: 2.3.0

Input:
NAME: Musition7Cloud
BASE_URL: https://www.risingsoftware.com/cloudsupport/downloads
SCHOOL_CODE: Put_School_Code_into_AutoPkg_recipe_override
re_pattern: <td>Mac</td><td><a href='([^']*musition[^']*)'

Process:
- Processor: StopProcessingIf
Arguments:
predicate: SCHOOL_CODE == 'Put_School_Code_into_AutoPkg_recipe_override'

- Processor: URLTextSearcher
Arguments:
result_output_var_name: url
url: '%BASE_URL%?school_code=%SCHOOL_CODE%'

- Processor: URLDownloader

- Processor: EndOfCheckPhase

- Processor: CodeSignatureVerifier
Arguments:
input_path: '%pathname%'
expected_authority_names:
- 'Developer ID Installer: Rising Software Australia Pty Ltd (NQMN77T7W6)'
- Developer ID Certification Authority
- Apple Root CA
50 changes: 50 additions & 0 deletions Rising Software/Musition7Cloud.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
Description: |
Downloads the latest version of Musition 7 Cloud as a pkg,
verifies the code signature, finds the version, then uploads
the package to Jamf Pro. The downloaded package 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.Musition7Cloud
MinimumVersion: 2.3.0
ParentRecipe: com.github.davidbpirie.pkg.Musition7Cloud

Input:
NAME: Musition7Cloud
JAMF_CATEGORY: Music
JAMF_PKG_NAME: '%NAME%'
JAMF_PKG_INFO: |
Fun ways to learn music theory and musicianship. Online music theory
software, suitable for students of all ages and levels. Become an expert
at reading sheet music, recognising time signatures, notating rhythms,
understanding intervals, matching keys signatures and more.
JAMF_PKG_NOTES: '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%'
37 changes: 37 additions & 0 deletions Rising Software/Musition7Cloud.pkg.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Description: |
Downloads the latest version of Musition 7 Cloud as a pkg,
verifies the code signature, then finds the version.
Identifier: com.github.davidbpirie.pkg.Musition7Cloud
ParentRecipe: com.github.davidbpirie.download.Musition7Cloud
MinimumVersion: 2.3.0

Input:
NAME: Musition7Cloud

Process:
- Processor: FlatPkgUnpacker
Arguments:
flat_pkg_path: '%pathname%'
destination_path: '%RECIPE_CACHE_DIR%/unpack'

- Processor: PkgPayloadUnpacker
Arguments:
pkg_payload_path: '%RECIPE_CACHE_DIR%/unpack/Musition_7_Cloud.pkg/Payload'
destination_path: '%RECIPE_CACHE_DIR%/payload'
purge_destination: True

- Processor: PlistReader
Arguments:
info_path: '%RECIPE_CACHE_DIR%/payload/Applications/Musition 7 Cloud.app'

- Processor: PkgCopier
Arguments:
source_pkg: '%pathname%'
pkg_path: '%RECIPE_CACHE_DIR%/%NAME%-%version%.pkg'

- Processor: PathDeleter
Arguments:
path_list:
- '%RECIPE_CACHE_DIR%/unpack'
- '%RECIPE_CACHE_DIR%/payload'

0 comments on commit abed3ff

Please sign in to comment.