Skip to content

Commit

Permalink
Removes support for the legacy version of DuetDesktop
Browse files Browse the repository at this point in the history
Removes support for the legacy version of DuetDesktop as per #661

Updates the pkg and install recipe to account for the new dmg format.
  • Loading branch information
paul-cossey committed Nov 4, 2024
1 parent 1021505 commit 12faea0
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 23 deletions.
10 changes: 2 additions & 8 deletions DuetDisplay/duet.download.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,13 @@
<key>Comment</key>
<string>Created with Recipe Robot v1.0.3 (https://github.com/homebysix/recipe-robot)</string>
<key>Description</key>
<string>Downloads the latest version of duet.

To download the latest version of duet (macOS 12.3 and above) set DOWNLOAD_VERSION to "AppleSilicon" - Please note the "AppleSilicon" version is Universal.

To download the latest legacy version of duet (macOS 10.9 - 12.2) set DOWNLOAD_VERSION to "legacyMac"</string>
<string>Downloads the latest version of duet.</string>
<key>Identifier</key>
<string>com.github.homebysix.download.duet</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>duet</string>
<key>DOWNLOAD_VERSION</key>
<string>AppleSilicon</string>
</dict>
<key>MinimumVersion</key>
<string>0.6.1</string>
Expand All @@ -29,7 +23,7 @@ To download the latest legacy version of duet (macOS 10.9 - 12.2) set DOWNLOAD_V
<key>filename</key>
<string>%NAME%.dmg</string>
<key>url</key>
<string>https://updates.duetdisplay.com/%DOWNLOAD_VERSION%</string>
<string>https://updates.duetdisplay.com/AppleSilicon</string>
</dict>
<key>Processor</key>
<string>URLDownloader</string>
Expand Down
13 changes: 1 addition & 12 deletions DuetDisplay/duet.install.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions DuetDisplay/duet.munki.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
<key>Comment</key>
<string>Created with Recipe Robot v1.0.3 (https://github.com/homebysix/recipe-robot)</string>
<key>Description</key>
<string>Downloads the latest version of duet and imports it into Munki.

If downloading the latest legacy version of duet (macOS 10.9 - 12.2) set maximum_os_version to 12.2 otherwise please leave blank.</string>
<string>Downloads the latest version of duet and imports it into Munki.</string>
<key>Identifier</key>
<string>com.github.homebysix.munki.duet</string>
<key>Input</key>
Expand Down
36 changes: 36 additions & 0 deletions DuetDisplay/duet.pkg.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,31 @@
<string>com.github.homebysix.download.duet</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>destination_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Applications/duet.app</string>
<key>source_path</key>
<string>%pathname%/duet.app</string>
</dict>
<key>Processor</key>
<string>Copier</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>info_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Applications/duet.app</string>
<key>plist_keys</key>
<dict>
<key>CFBundleShortVersionString</key>
<string>version</string>
</dict>
</dict>
<key>Processor</key>
<string>PlistReader</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
Expand Down Expand Up @@ -52,6 +77,17 @@
<key>Processor</key>
<string>PkgCreator</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>path_list</key>
<array>
<string>%RECIPE_CACHE_DIR%/%NAME%</string>
</array>
</dict>
<key>Processor</key>
<string>PathDeleter</string>
</dict>
</array>
</dict>
</plist>

0 comments on commit 12faea0

Please sign in to comment.