Skip to content

Commit

Permalink
Added code signature verification.
Browse files Browse the repository at this point in the history
  • Loading branch information
homebysix committed Aug 27, 2016
1 parent 180e9f9 commit 5387980
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 90 deletions.
39 changes: 37 additions & 2 deletions BootstrapStudio/BootstrapStudio.download.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
<string>Bootstrap Studio</string>
</dict>
<key>MinimumVersion</key>
<string>0.6.0</string>
<string>0.6.1</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>filename</key>
<string>Bootstrap%20Studio.zip</string>
<string>%NAME%.zip</string>
<key>url</key>
<string>%DOWNLOAD_URL%</string>
</dict>
Expand All @@ -34,6 +34,41 @@
<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%/%NAME%/Applications</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%/%NAME%/Applications/Bootstrap Studio.app</string>
<key>requirement</key>
<string>identifier "bg.zine.bootstrapstudio" 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] = EGXHVAH3X6</string>
</dict>
<key>Processor</key>
<string>CodeSignatureVerifier</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>input_plist_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Applications/Bootstrap Studio.app/Contents/Info.plist</string>
<key>plist_version_key</key>
<string>CFBundleShortVersionString</string>
</dict>
<key>Processor</key>
<string>Versioner</string>
</dict>
</array>
</dict>
</plist>
17 changes: 2 additions & 15 deletions BootstrapStudio/BootstrapStudio.install.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,11 @@
<string>Bootstrap Studio</string>
</dict>
<key>MinimumVersion</key>
<string>0.5.0</string>
<string>0.6.1</string>
<key>ParentRecipe</key>
<string>com.github.homebysix.download.BootstrapStudio</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>archive_path</key>
<string>%pathname%</string>
<key>destination_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Applications</string>
<key>purge_destination</key>
<true/>
</dict>
<key>Processor</key>
<string>Unarchiver</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
Expand All @@ -54,7 +41,7 @@
<key>destination_path</key>
<string>/Applications</string>
<key>source_item</key>
<string>%NAME%.app</string>
<string>Bootstrap Studio.app</string>
</dict>
</array>
</dict>
Expand Down
15 changes: 1 addition & 14 deletions BootstrapStudio/BootstrapStudio.munki.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,11 @@
</dict>
</dict>
<key>MinimumVersion</key>
<string>0.5.0</string>
<string>0.6.1</string>
<key>ParentRecipe</key>
<string>com.github.homebysix.download.BootstrapStudio</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>archive_path</key>
<string>%pathname%</string>
<key>destination_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Applications</string>
<key>purge_destination</key>
<true/>
</dict>
<key>Processor</key>
<string>Unarchiver</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
Expand Down
26 changes: 1 addition & 25 deletions BootstrapStudio/BootstrapStudio.pkg.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,11 @@
<string>Bootstrap Studio</string>
</dict>
<key>MinimumVersion</key>
<string>0.5.0</string>
<string>0.6.1</string>
<key>ParentRecipe</key>
<string>com.github.homebysix.download.BootstrapStudio</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>archive_path</key>
<string>%pathname%</string>
<key>destination_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Applications</string>
<key>purge_destination</key>
<true/>
</dict>
<key>Processor</key>
<string>Unarchiver</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>input_plist_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Applications/%NAME%.app/Contents/Info.plist</string>
<key>plist_version_key</key>
<string>CFBundleShortVersionString</string>
</dict>
<key>Processor</key>
<string>Versioner</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
Expand Down
24 changes: 23 additions & 1 deletion SugarSync/SugarSync.download.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<key>Arguments</key>
<dict>
<key>filename</key>
<string>InstallSugarSync.dmg</string>
<string>%NAME%.dmg</string>
<key>url</key>
<string>%DOWNLOAD_URL%</string>
</dict>
Expand All @@ -34,6 +34,28 @@
<key>Processor</key>
<string>EndOfCheckPhase</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>input_path</key>
<string>%pathname%/SugarSync.app</string>
<key>requirement</key>
<string>identifier "com.SugarSync.SugarSync" 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] = SX99Q6TQQJ</string>
</dict>
<key>Processor</key>
<string>CodeSignatureVerifier</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>input_plist_path</key>
<string>%pathname%/SugarSync.app/Contents/Info.plist</string>
<key>plist_version_key</key>
<string>CFBundleShortVersionString</string>
</dict>
<key>Processor</key>
<string>Versioner</string>
</dict>
</array>
</dict>
</plist>
4 changes: 2 additions & 2 deletions SugarSync/SugarSync.install.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<string>SugarSync</string>
</dict>
<key>MinimumVersion</key>
<string>0.5.0</string>
<string>0.6.1</string>
<key>ParentRecipe</key>
<string>com.github.homebysix.download.SugarSync</string>
<key>Process</key>
Expand All @@ -30,7 +30,7 @@
<key>destination_path</key>
<string>/Applications</string>
<key>source_item</key>
<string>%NAME%.app</string>
<string>SugarSync.app</string>
</dict>
</array>
</dict>
Expand Down
15 changes: 1 addition & 14 deletions SugarSync/SugarSync.munki.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,18 @@
</dict>
</dict>
<key>MinimumVersion</key>
<string>0.5.0</string>
<string>0.6.1</string>
<key>ParentRecipe</key>
<string>com.github.homebysix.download.SugarSync</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>input_plist_path</key>
<string>%pathname%/%NAME%.app/Contents/Info.plist</string>
<key>plist_version_key</key>
<string>CFBundleShortVersionString</string>
</dict>
<key>Processor</key>
<string>Versioner</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>pkg_path</key>
<string>%pathname%</string>
<key>repo_subdirectory</key>
<string>%MUNKI_REPO_SUBDIR%</string>
<key>version_comparison_key</key>
<string>CFBundleShortVersionString</string>
</dict>
<key>Processor</key>
<string>MunkiImporter</string>
Expand Down
17 changes: 3 additions & 14 deletions SugarSync/SugarSync.pkg.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,11 @@
<string>SugarSync</string>
</dict>
<key>MinimumVersion</key>
<string>0.5.0</string>
<string>0.6.1</string>
<key>ParentRecipe</key>
<string>com.github.homebysix.download.SugarSync</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>input_plist_path</key>
<string>%pathname%/%NAME%.app/Contents/Info.plist</string>
<key>plist_version_key</key>
<string>CFBundleShortVersionString</string>
</dict>
<key>Processor</key>
<string>Versioner</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
Expand All @@ -50,9 +39,9 @@
<key>Arguments</key>
<dict>
<key>destination_path</key>
<string>%pkgroot%/Applications/%NAME%.app</string>
<string>%pkgroot%/Applications/SugarSync.app</string>
<key>source_path</key>
<string>%pathname%/%NAME%.app</string>
<string>%pathname%/SugarSync.app</string>
</dict>
<key>Processor</key>
<string>Copier</string>
Expand Down
6 changes: 3 additions & 3 deletions iZip/iZip.pkg.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<string>iZip</string>
</dict>
<key>MinimumVersion</key>
<string>0.5.0</string>
<string>0.6.1</string>
<key>ParentRecipe</key>
<string>com.github.homebysix.download.iZip</string>
<key>Process</key>
Expand All @@ -39,9 +39,9 @@
<key>Arguments</key>
<dict>
<key>destination_path</key>
<string>%pkgroot%/Applications/%NAME%.app</string>
<string>%pkgroot%/Applications/iZip.app</string>
<key>source_path</key>
<string>%pathname%/%NAME%.app</string>
<string>%pathname%/iZip.app</string>
</dict>
<key>Processor</key>
<string>Copier</string>
Expand Down

0 comments on commit 5387980

Please sign in to comment.