Skip to content

Commit

Permalink
Merge pull request #90 from d33t5/master
Browse files Browse the repository at this point in the history
Resolve issue #87
Thanks
  • Loading branch information
onecooltaco authored May 11, 2020
2 parents 5db09eb + acaa891 commit cbed3a4
Showing 1 changed file with 28 additions and 84 deletions.
112 changes: 28 additions & 84 deletions MacDown/MacDown.pkg.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -2,99 +2,43 @@
<!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 latest MacDown archive and builds a package.</string>
<key>Identifier</key>
<string>com.github.jleggat.pkg.macdown</string>
<key>Input</key>
<key>Description</key>
<string>Downloads latest MacDown archive and builds a package.</string>
<key>Identifier</key>
<string>com.github.jleggat.pkg.macdown</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>MacDown</string>
<key>BUNDLEID</key>
<string>com.uranusjr.macdown</string>
</dict>
<key>ParentRecipe</key>
<string>com.github.jleggat.download.macdown</string>
<key>Process</key>
<array>
<dict>
<key>Processor</key>
<string>Unarchiver</string>
<key>Arguments</key>
<dict>
<key>archive_path</key>
<string>%pathname%</string>
<key>destination_path</key>
<string>%RECIPE_CACHE_DIR%/src/%NAME%</string>
<key>purge_destination</key>
<true/>
</dict>
</dict>
<dict>
<key>Comment</key>
<string>Get version from the app</string>
<key>Processor</key>
<string>Versioner</string>
<key>Arguments</key>
<dict>
<key>input_plist_path</key>
<string>%destination_path%/MacDown.app/Contents/Info.plist</string>
</dict>
<key>NAME</key>
<string>MacDown</string>
</dict>
<dict>
<key>Processor</key>
<string>PkgRootCreator</string>
<key>Arguments</key>
<dict>
<key>pkgroot</key>
<string>%RECIPE_CACHE_DIR%/%NAME%</string>
<key>pkgdirs</key>
<key>ParentRecipe</key>
<string>com.github.jleggat.download.macdown</string>
<key>Process</key>
<array>
<dict>
<key>Applications</key>
<string>0775</string>
<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>
</dict>
<dict>
<key>Processor</key>
<string>Copier</string>
<key>Arguments</key>
<dict>
<key>source_path</key>
<string>%destination_path%/MacDown.app</string>
<key>destination_path</key>
<string>%pkgroot%/Applications/MacDown.app</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>PkgCreator</string>
<key>Arguments</key>
<dict>
<key>pkg_request</key>
<dict>
<key>pkgname</key>
<string>%NAME%-%version%</string>
<key>version</key>
<string>%version%</string>
<key>id</key>
<string>%BUNDLEID%</string>
<key>options</key>
<string>purge_ds_store</string>
<key>chown</key>
<array>
<key>Arguments</key>
<dict>
<key>path</key>
<string>Applications</string>
<key>user</key>
<string>root</string>
<key>group</key>
<string>admin</string>
<key>app_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/MacDown.app</string>
</dict>
</array>
<key>Processor</key>
<string>AppPkgCreator</string>
</dict>
</dict>
</dict>
</array>
</array>
</dict>
</plist>

0 comments on commit cbed3a4

Please sign in to comment.