diff --git a/Casks/j/jandi.rb b/Casks/j/jandi.rb index c8af54e8f02d..0424111a2b03 100644 --- a/Casks/j/jandi.rb +++ b/Casks/j/jandi.rb @@ -1,7 +1,7 @@ cask "jandi" do arch arm: "-arm64" - version "1.7.7,202306" + version "1.7.7" sha256 :no_check url "https://cdn.jandi.com/jandi-pc/download/JANDI#{arch}.dmg" @@ -10,8 +10,14 @@ homepage "https://www.jandi.com/landing/" livecheck do - url :url - strategy :extract_plist + url "https://www.jandi.io/version/useragent/desktop" + regex(%r{Jandi/v?(\d+(?:\.\d+)+)}i) + strategy :json do |json, regex| + match = json["response"]&.match(regex) + next if match.blank? + + match[1] + end end app "JANDI.app"