Skip to content

Commit

Permalink
Merge pull request #650 from homebysix/menu-bar-spacing
Browse files Browse the repository at this point in the history
Add recipes for Menu Bar Spacing
  • Loading branch information
homebysix authored Jul 11, 2024
2 parents ee37f45 + 21d6565 commit e665e55
Show file tree
Hide file tree
Showing 3 changed files with 177 additions and 0 deletions.
79 changes: 79 additions & 0 deletions MenuBarSpacing/MenuBarSpacing.download.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?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>Comment</key>
<string>Created with Recipe Robot v2.3.0 (https://github.com/homebysix/recipe-robot)</string>
<key>Description</key>
<string>Downloads the latest version of Menu Bar Spacing.</string>
<key>Identifier</key>
<string>com.github.homebysix.download.MenuBarSpacing</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>Menu Bar Spacing</string>
</dict>
<key>MinimumVersion</key>
<string>2.3</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>appcast_url</key>
<string>https://sindresorhus.com/menu-bar-spacing-meta/appcast.xml</string>
</dict>
<key>Processor</key>
<string>SparkleUpdateInfoProvider</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>filename</key>
<string>%NAME%-%version%.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%/%NAME%</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%/Menu Bar Spacing.app</string>
<key>requirement</key>
<string>anchor apple generic and identifier "com.sindresorhus.Menu-Bar-Spacing" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or 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] = YG56YK5RN5)</string>
</dict>
<key>Processor</key>
<string>CodeSignatureVerifier</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>input_plist_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Menu Bar Spacing.app/Contents/Info.plist</string>
<key>plist_version_key</key>
<string>CFBundleShortVersionString</string>
</dict>
<key>Processor</key>
<string>Versioner</string>
</dict>
</array>
</dict>
</plist>
65 changes: 65 additions & 0 deletions MenuBarSpacing/MenuBarSpacing.munki.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?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>Comment</key>
<string>Created with Recipe Robot v2.3.0 (https://github.com/homebysix/recipe-robot)</string>
<key>Description</key>
<string>Downloads the latest version of Menu Bar Spacing and imports it into Munki.</string>
<key>Identifier</key>
<string>com.github.homebysix.munki.MenuBarSpacing</string>
<key>Input</key>
<dict>
<key>MUNKI_REPO_SUBDIR</key>
<string>apps/%NAME%</string>
<key>NAME</key>
<string>Menu Bar Spacing</string>
<key>pkginfo</key>
<dict>
<key>catalogs</key>
<array>
<string>testing</string>
</array>
<key>description</key>
<string>Customize the gap between menu bar items.</string>
<key>developer</key>
<string>Sindre Sorhus</string>
<key>display_name</key>
<string>Menu Bar Spacing</string>
<key>name</key>
<string>%NAME%</string>
<key>unattended_install</key>
<true/>
</dict>
</dict>
<key>MinimumVersion</key>
<string>2.3</string>
<key>ParentRecipe</key>
<string>com.github.homebysix.download.MenuBarSpacing</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>dmg_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%.dmg</string>
<key>dmg_root</key>
<string>%RECIPE_CACHE_DIR%/%NAME%</string>
</dict>
<key>Processor</key>
<string>DmgCreator</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>pkg_path</key>
<string>%dmg_path%</string>
<key>repo_subdirectory</key>
<string>%MUNKI_REPO_SUBDIR%</string>
</dict>
<key>Processor</key>
<string>MunkiImporter</string>
</dict>
</array>
</dict>
</plist>
33 changes: 33 additions & 0 deletions MenuBarSpacing/MenuBarSpacing.pkg.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?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>Comment</key>
<string>Created with Recipe Robot v2.3.0 (https://github.com/homebysix/recipe-robot)</string>
<key>Description</key>
<string>Downloads the latest version of Menu Bar Spacing and creates a package.</string>
<key>Identifier</key>
<string>com.github.homebysix.pkg.MenuBarSpacing</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>Menu Bar Spacing</string>
</dict>
<key>MinimumVersion</key>
<string>2.3</string>
<key>ParentRecipe</key>
<string>com.github.homebysix.download.MenuBarSpacing</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>app_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Menu Bar Spacing.app</string>
</dict>
<key>Processor</key>
<string>AppPkgCreator</string>
</dict>
</array>
</dict>
</plist>

0 comments on commit e665e55

Please sign in to comment.