Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Neat Desktop recipes #118

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
33 changes: 27 additions & 6 deletions Neat/Neat.download.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,20 @@
<plist version="1.0">
<dict>
<key>Description</key>
<string>Find latest Neat from appcast and download.</string>
<string>Find latest Neat from appcast and download.

Valid values for ARCH include:
- "Intel" (default)
- "ARM" (Apple Silicon)
</string>
<key>Identifier</key>
<string>com.github.jessepeterson.Neat.download</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>Neat</string>
<key>SPARKLE_FEED_URL</key>
<string>http://cdn.neatco.com/appcast.xml</string>
<key>ARCH</key>
<string>Intel</string>
</dict>
<key>MinimumVersion</key>
<string>0.2.0</string>
Expand All @@ -20,12 +25,17 @@
<dict>
<key>Arguments</key>
<dict>
<key>appcast_url</key>
<string>%SPARKLE_FEED_URL%</string>
<key>re_pattern</key>
<string>href="(https://neat-marketing\.s3\.amazonaws\.com/support/Articles/Neat%20Desktop%20Application/NeatDesktop-[\d\.]+-%ARCH%\.dmg)"</string>
<key>result_output_var_name</key>
<string>url</string>
<key>url</key>
<string>https://support.neat.com/desktop/new-neat-desktop-application#downloads</string>
</dict>
<key>Processor</key>
<string>SparkleUpdateInfoProvider</string>
<string>URLTextSearcher</string>
</dict>

<dict>
<key>Arguments</key>
<dict>
Expand All @@ -39,6 +49,17 @@
<key>Processor</key>
<string>EndOfCheckPhase</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>input_path</key>
<string>%pathname%/Neat® Desktop.app</string>
<key>requirement</key>
<string>identifier "com.neat.desktop" 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] = WZWUP793NV</string>
</dict>
<key>Processor</key>
<string>CodeSignatureVerifier</string>
</dict>
</array>
</dict>
</plist>
92 changes: 0 additions & 92 deletions Neat/Neat.munki.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
<string>The Neat Company</string>
<key>display_name</key>
<string>Neat</string>
<key>blocking_applications</key>
<array>
<string>Neat</string>
</array>
<key>name</key>
<string>%NAME%</string>
<key>unattended_install</key>
Expand All @@ -44,94 +40,6 @@
<string>com.github.jessepeterson.Neat.download</string>
<key>Process</key>
<array>
<dict>
<key>Processor</key>
<string>FlatPkgUnpacker</string>
<key>Arguments</key>
<dict>
<key>flat_pkg_path</key>
<string>%pathname%/*.pkg</string>
<key>destination_path</key>
<string>%RECIPE_CACHE_DIR%/unpack</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>PkgRootCreator</string>
<key>Arguments</key>
<dict>
<key>pkgroot</key>
<string>%RECIPE_CACHE_DIR%/pkgroot</string>
<key>pkgdirs</key>
<dict>
<key>Applications</key>
<string>0755</string>
</dict>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>PkgPayloadUnpacker</string>
<key>Arguments</key>
<dict>
<key>purge_destination</key>
<true/>
<key>pkg_payload_path</key>
<string>%RECIPE_CACHE_DIR%/unpack/Neat.pkg/Payload</string>
<key>destination_path</key>
<string>%RECIPE_CACHE_DIR%/pkgroot</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>Versioner</string>
<key>Arguments</key>
<dict>
<key>input_plist_path</key>
<string>%RECIPE_CACHE_DIR%/pkgroot/Applications/Neat.app/Contents/Info.plist</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>MunkiPkginfoMerger</string>
<key>Arguments</key>
<dict>
<key>additional_pkginfo</key>
<dict>
<key>version</key>
<string>%version%</string>
</dict>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>MunkiInstallsItemsCreator</string>
<key>Arguments</key>
<dict>
<key>faux_root</key>
<string>%RECIPE_CACHE_DIR%/pkgroot</string>
<key>installs_item_paths</key>
<array>
<string>/Applications/Neat.app</string>
</array>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>MunkiPkginfoMerger</string>
</dict>
<dict>
<key>Processor</key>
<string>PathDeleter</string>
<key>Arguments</key>
<dict>
<key>path_list</key>
<array>
<string>%RECIPE_CACHE_DIR%/unpack</string>
<string>%RECIPE_CACHE_DIR%/pkgroot</string>
</array>
</dict>
</dict>
<dict>
<key>Arguments</key>
<dict>
Expand Down