Skip to content

Commit

Permalink
Updated Flinto recipes
Browse files Browse the repository at this point in the history
Closes autopkg#124.
  • Loading branch information
homebysix committed Sep 23, 2017
1 parent bfe2391 commit 5d20f0b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 77 deletions.
25 changes: 6 additions & 19 deletions Flinto/Flinto.download.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@
<plist version="1.0">
<dict>
<key>Comment</key>
<string>Created with Recipe Robot v1.0.3 (https://github.com/homebysix/recipe-robot)</string>
<string>Created with Recipe Robot v1.0.5 (https://github.com/homebysix/recipe-robot)</string>
<key>Description</key>
<string>Downloads the latest version of Flinto.</string>
<key>Identifier</key>
<string>com.github.homebysix.download.Flinto</string>
<key>Input</key>
<dict>
<key>DOWNLOAD_URL</key>
<string>https://www.flinto.com/assets/Flinto.app.zip</string>
<string>https://www.flinto.com/mac/download_latest</string>
<key>NAME</key>
<string>Flinto</string>
</dict>
<key>MinimumVersion</key>
<string>0.6.1</string>
<string>1.0.0</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>filename</key>
<string>%NAME%.zip</string>
<string>%NAME%.dmg</string>
<key>url</key>
<string>%DOWNLOAD_URL%</string>
</dict>
Expand All @@ -34,24 +34,11 @@
<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/Flinto.app</string>
<string>%pathname%/Flinto.app</string>
<key>requirement</key>
<string>anchor apple generic and identifier "com.flinto.Flinto" 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] = UZUZXB9C8N)</string>
</dict>
Expand All @@ -62,7 +49,7 @@
<key>Arguments</key>
<dict>
<key>input_plist_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Applications/Flinto.app/Contents/Info.plist</string>
<string>%pathname%/Flinto.app/Contents/Info.plist</string>
<key>plist_version_key</key>
<string>CFBundleShortVersionString</string>
</dict>
Expand Down
17 changes: 3 additions & 14 deletions Flinto/Flinto.install.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>Comment</key>
<string>Created with Recipe Robot v1.0.3 (https://github.com/homebysix/recipe-robot)</string>
<string>Created with Recipe Robot v1.0.5 (https://github.com/homebysix/recipe-robot)</string>
<key>Description</key>
<string>Installs the latest version of Flinto.</string>
<key>Identifier</key>
Expand All @@ -14,7 +14,7 @@
<string>Flinto</string>
</dict>
<key>MinimumVersion</key>
<string>0.6.1</string>
<string>1.0.0</string>
<key>ParentRecipe</key>
<string>com.github.homebysix.download.Flinto</string>
<key>Process</key>
Expand All @@ -23,18 +23,7 @@
<key>Arguments</key>
<dict>
<key>dmg_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%.dmg</string>
<key>dmg_root</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Applications</string>
</dict>
<key>Processor</key>
<string>DmgCreator</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>dmg_path</key>
<string>%dmg_path%</string>
<string>%pathname%</string>
<key>items_to_copy</key>
<array>
<dict>
Expand Down
17 changes: 3 additions & 14 deletions Flinto/Flinto.munki.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>Comment</key>
<string>Created with Recipe Robot v1.0.3 (https://github.com/homebysix/recipe-robot)</string>
<string>Created with Recipe Robot v1.0.5 (https://github.com/homebysix/recipe-robot)</string>
<key>Description</key>
<string>Downloads the latest version of Flinto and imports it into Munki.</string>
<key>Identifier</key>
Expand Down Expand Up @@ -33,27 +33,16 @@
</dict>
</dict>
<key>MinimumVersion</key>
<string>0.6.1</string>
<string>1.0.0</string>
<key>ParentRecipe</key>
<string>com.github.homebysix.download.Flinto</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%/Applications</string>
</dict>
<key>Processor</key>
<string>DmgCreator</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>pkg_path</key>
<string>%dmg_path%</string>
<string>%pathname%</string>
<key>repo_subdirectory</key>
<string>%MUNKI_REPO_SUBDIR%</string>
</dict>
Expand Down
33 changes: 3 additions & 30 deletions Flinto/Flinto.pkg.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>Comment</key>
<string>Created with Recipe Robot v1.0.3 (https://github.com/homebysix/recipe-robot)</string>
<string>Created with Recipe Robot v1.0.5 (https://github.com/homebysix/recipe-robot)</string>
<key>Description</key>
<string>Downloads the latest version of Flinto and creates a package.</string>
<key>Identifier</key>
Expand All @@ -16,41 +16,14 @@
<string>Flinto</string>
</dict>
<key>MinimumVersion</key>
<string>0.6.1</string>
<string>1.0.0</string>
<key>ParentRecipe</key>
<string>com.github.homebysix.download.Flinto</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>pkg_request</key>
<dict>
<key>chown</key>
<array>
<dict>
<key>group</key>
<string>admin</string>
<key>path</key>
<string>Applications</string>
<key>user</key>
<string>root</string>
</dict>
</array>
<key>id</key>
<string>%BUNDLE_ID%</string>
<key>options</key>
<string>purge_ds_store</string>
<key>pkgname</key>
<string>%NAME%-%version%</string>
<key>pkgroot</key>
<string>%RECIPE_CACHE_DIR%/%NAME%</string>
<key>version</key>
<string>%version%</string>
</dict>
</dict>
<key>Processor</key>
<string>PkgCreator</string>
<string>AppPkgCreator</string>
</dict>
</array>
</dict>
Expand Down

0 comments on commit 5d20f0b

Please sign in to comment.