Skip to content

Commit

Permalink
Add recipes for AJA Mini-Config
Browse files Browse the repository at this point in the history
  • Loading branch information
homebysix committed Dec 17, 2024
1 parent 50b3c72 commit 7512fcb
Show file tree
Hide file tree
Showing 3 changed files with 157 additions and 0 deletions.
72 changes: 72 additions & 0 deletions AJA/AJAMiniConfig.download.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
<string>Downloads the latest version of AJA Mini-Config.</string>
<key>Identifier</key>
<string>com.github.homebysix.download.AJAMiniConfig</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>AJA Mini-Config</string>
</dict>
<key>MinimumVersion</key>
<string>1.0.0</string>
<key>Process</key>
<array>
<dict>
<key>Processor</key>
<string>URLTextSearcher</string>
<key>Arguments</key>
<dict>
<key>re_pattern</key>
<string>assets\\/support\\/files\\/(?P&lt;fileid&gt;\d+)\\/en\\/Mini_Config_v(?P&lt;version&gt;[\d\.]+)_macOS\.zip</string>
<key>url</key>
<string>https://www.aja.com/products/mini-config-software#support</string>
<key>result_output_var_name</key>
<string>filepath</string>
</dict>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>filename</key>
<string>%NAME%-%version%.zip</string>
<key>url</key>
<string>https://www.aja.com/assets/support/files/%fileid%/en/Mini_Config_v%version%_macOS.zip</string>
</dict>
<key>Processor</key>
<string>URLDownloader</string>
</dict>
<dict>
<key>Processor</key>
<string>EndOfCheckPhase</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>archive_path</key>
<string>%pathname%</string>
<key>destination_path</key>
<string>%RECIPE_CACHE_DIR%/unzipped</string>
<key>purge_destination</key>
<true/>
</dict>
<key>Processor</key>
<string>Unarchiver</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>input_path</key>
<string>%RECIPE_CACHE_DIR%/unzipped/Mini_Config_v%version%_macOS/AJA_Mini-Config-%version%.dmg/AJA Mini-Config.app</string>
<key>requirement</key>
<string>identifier "com.aja.MiniConfig" 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] = "9VB857J7CD"</string>
</dict>
<key>Processor</key>
<string>CodeSignatureVerifier</string>
</dict>
</array>
</dict>
</plist>
54 changes: 54 additions & 0 deletions AJA/AJAMiniConfig.munki.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
<string>Downloads the latest version of AJA Mini-Config and imports it into Munki.</string>
<key>Identifier</key>
<string>com.github.homebysix.munki.AJAMiniConfig</string>
<key>Input</key>
<dict>
<key>MUNKI_REPO_SUBDIR</key>
<string>apps/%NAME%</string>
<key>NAME</key>
<string>AJAMiniConfig</string>
<key>pkginfo</key>
<dict>
<key>catalogs</key>
<array>
<string>testing</string>
</array>
<key>description</key>
<string>The free AJA Mini-Config software allows interactive, visual configuration and complete control of USB-enabled AJA Mini-Converters via a single USB connection to a Mac or PC computer.</string>
<key>developer</key>
<string>AJA</string>
<key>display_name</key>
<string>AJA Mini-Config</string>
<key>name</key>
<string>%NAME%</string>
<key>unattended_install</key>
<true/>
<key>unattended_uninstall</key>
<true/>
</dict>
</dict>
<key>MinimumVersion</key>
<string>1.0.0</string>
<key>ParentRecipe</key>
<string>com.github.homebysix.download.AJAMiniConfig</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>pkg_path</key>
<string>%RECIPE_CACHE_DIR%/unzipped/Mini_Config_v%version%_macOS/AJA_Mini-Config-%version%.dmg</string>
<key>repo_subdirectory</key>
<string>%MUNKI_REPO_SUBDIR%</string>
</dict>
<key>Processor</key>
<string>MunkiImporter</string>
</dict>
</array>
</dict>
</plist>
31 changes: 31 additions & 0 deletions AJA/AJAMiniConfig.pkg.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
<string>Downloads the latest version of AJA Mini-Config and creates a package.</string>
<key>Identifier</key>
<string>com.github.homebysix.pkg.AJAMiniConfig</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>AJA Mini-Config</string>
</dict>
<key>MinimumVersion</key>
<string>1.0.0</string>
<key>ParentRecipe</key>
<string>com.github.homebysix.download.AJAMiniConfig</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>app_path</key>
<string>%RECIPE_CACHE_DIR%/unzipped/Mini_Config_v%version%_macOS/AJA_Mini-Config-%version%.dmg/AJA Mini-Config.app</string>
</dict>
<key>Processor</key>
<string>AppPkgCreator</string>
</dict>
</array>
</dict>
</plist>

0 comments on commit 7512fcb

Please sign in to comment.