Update duet.rb

This commit is contained in:
Miccal Matthews
2023-09-18 16:31:14 +08:00
committed by GitHub
parent 6915e1f406
commit 5217acddee
+7 -9
View File
@@ -3,20 +3,20 @@ cask "duet" do
version "2.4.7.1"
sha256 "3e91729e333ab3e2984bec4c1194e7022d016d91c79cd21509bc00b42b9559bd"
url "https://duetdownload.com/Mac/#{version.major_minor.dots_to_underscores}/duet-#{version.dots_to_hyphens}.zip",
verified: "duetdownload.com/Mac/"
livecheck do
url "https://updates.duetdisplay.com/latestMac"
regex(/duet[._-]v?(\d+(?:-\d+)+)\.zip/i)
strategy :header_match do |headers|
headers["location"].scan(regex).map do |match|
match[0].tr("-", ".").to_s
end
end
skip "Legacy version"
end
end
on_big_sur :or_newer do
version "3.11.0.0"
sha256 "98c78849b77df18a29b33a6da755a0039aef8aa884d8737d5cafce2a4507bd6d"
url "https://duetdownload.com/Mac/#{version.major}_x/duet-#{version.dots_to_hyphens}.zip",
verified: "duetdownload.com/Mac/"
livecheck do
url "https://updates.duetdisplay.com/AppleSilicon"
regex(/duet[._-]v?(\d+(?:-\d+)+)\.zip/i)
@@ -28,8 +28,6 @@ cask "duet" do
end
end
url "https://duetdownload.com/Mac/#{version.major}_x/duet-#{version.dots_to_hyphens}.zip",
verified: "duetdownload.com/Mac/"
name "Duet"
desc "Remote desktop and second display tool"
homepage "https://www.duetdisplay.com/"