Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions Dash/Dash.download.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?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 Dash specified by MAJOR_VERSION.

Tested successfully with major versions 4, 5, 6, and 7 in November 2024.</string>
<key>Identifier</key>
<string>com.github.apizz.download.Dash</string>
<key>Input</key>
<dict>
<key>MAJOR_VERSION</key>
<string>7</string>
<key>NAME</key>
<string>Dash</string>
</dict>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>filename</key>
<string>%NAME%.zip</string>
<key>url</key>
<string>https://newyork.kapeli.com/downloads/v%MAJOR_VERSION%/Dash.zip</string>
</dict>
<key>Processor</key>
<string>URLDownloader</string>
</dict>
<dict>
<key>Processor</key>
<string>EndOfCheckPhase</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<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%/Dash.app</string>
<key>requirement</key>
<string>anchor apple generic and identifier "com.kapeli.dashdoc" 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] = JP58VMK957)</string>
<key>strict_verification</key>
<true/>
</dict>
<key>Processor</key>
<string>CodeSignatureVerifier</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>info_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Dash.app/Contents/Info.plist</string>
<key>plist_keys</key>
<dict>
<key>CFBundleShortVersionString</key>
<string>version</string>
<key>LSMinimumSystemVersion</key>
<string>min_os_version</string>
</dict>
</dict>
<key>Processor</key>
<string>PlistReader</string>
</dict>
</array>
</dict>
</plist>
65 changes: 65 additions & 0 deletions Dash/Dash.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>Description</key>
<string>Downloads the latest version of Dash specified by MAJOR_VERSION and imports into Munki.</string>
<key>Identifier</key>
<string>com.github.apizz.munki.Dash</string>
<key>Input</key>
<dict>
<key>MUNKI_CATEGORY</key>
<string>Developer Tools</string>
<key>MUNKI_REPO_SUBDIR</key>
<string>apps/dash</string>
<key>NAME</key>
<string>Dash</string>
<key>pkginfo</key>
<dict>
<key>catalogs</key>
<array>
<string>testing</string>
</array>
<key>category</key>
<string>%MUNKI_CATEGORY%</string>
<key>description</key>
<string>Dash is an API Documentation Browser and Code Snippet Manager. Dash instantly searches offline documentation sets for 200+ APIs, 100+ cheat sheets and more. You can even generate your own docsets or request docsets to be included.</string>
<key>developer</key>
<string>Bogdan Popescu</string>
<key>display_name</key>
<string>Dash</string>
<key>name</key>
<string>%NAME%</string>
<key>unattended_install</key>
<true/>
</dict>
</dict>
<key>ParentRecipe</key>
<string>com.github.apizz.download.Dash</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>dmg_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%-%version%.dmg</string>
<key>dmg_root</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Dash.app</string>
</dict>
<key>Processor</key>
<string>DmgCreator</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>pkg_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%-%version%.dmg</string>
<key>repo_subdirectory</key>
<string>%MUNKI_REPO_SUBDIR%</string>
</dict>
<key>Processor</key>
<string>MunkiImporter</string>
</dict>
</array>
</dict>
</plist>
29 changes: 29 additions & 0 deletions Dash/Dash.pkg.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?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 Dash specified by MAJOR_VERSION and creates a pkg.</string>
<key>Identifier</key>
<string>com.github.apizz.pkg.Dash</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>Dash</string>
</dict>
<key>ParentRecipe</key>
<string>com.github.apizz.download.Dash</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>app_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Dash.app</string>
</dict>
<key>Processor</key>
<string>AppPkgCreator</string>
</dict>
</array>
</dict>
</plist>