Skip to content

Commit

Permalink
Merge pull request #181251 from Homebrew/update-yousician
Browse files Browse the repository at this point in the history
yousician: update livecheck
  • Loading branch information
p-linnane committed Jul 31, 2024
2 parents 77a9451 + 13b44fc commit 35eb13d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Casks/y/yousician.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cask "yousician" do
version "2.11.43.0"
version "2.11.43"
sha256 :no_check

url "https://public.yousician.com/Builds/Yousician.dmg"
Expand All @@ -8,8 +8,11 @@
homepage "https://yousician.com/"

livecheck do
url :url
strategy :extract_plist
url "https://api.yousician.com/launcher/OSX/check_version/launcher/current/Yousician-launcher/0"
regex(/Yousician[._-]launcher[._-]OSX[._-]v?(\d+(?:\.\d+)+)/i)
strategy :json do |json, regex|
json["remote_version"]&.match(regex) { |match| match[1] }
end
end

depends_on macos: ">= :high_sierra"
Expand All @@ -25,5 +28,6 @@
"~/Library/Logs/Yousician",
"~/Library/Preferences/unity.Yousician.Yousician.plist",
"~/Library/Saved Application State/com.yousician.launcher.savedState",
"~/Library/Saved Application State/unity.Yousician.Yousician.savedState",
]
end

0 comments on commit 35eb13d

Please sign in to comment.