diff --git a/Casks/w/wiso-steuer-2024.rb b/Casks/w/wiso-steuer-2024.rb index 1e14b505c797..d2fbcd32ef3f 100644 --- a/Casks/w/wiso-steuer-2024.rb +++ b/Casks/w/wiso-steuer-2024.rb @@ -1,9 +1,9 @@ cask "wiso-steuer-2024" do # NOTE: "2024" is not a version number, but an intrinsic part of the product name - version "31.08.4050" - sha256 "0b5fb4a649bc7212e77ed5b04dc59368eb7990440f1849dacc3d988f156577d5" + version "31.09.4100-RC1" + sha256 "3b21d169989dd7a799c318879839a6f2bfb0e0703021f13a5e9cba3c3d32d897" - url "https://update.buhl-data.com/Updates/Steuer/2024/Mac/Files/#{version}-HF1/SteuerMac2024-#{version}.dmg", + url "https://update.buhl-data.com/Updates/Steuer/2024/Mac/Files/#{version}/SteuerMac2024-#{version.split("-").first}.dmg", verified: "update.buhl-data.com/Updates/Steuer/" name "WISO Steuer 2024" desc "Tax declaration for the fiscal year 2023" @@ -11,7 +11,13 @@ livecheck do url "https://update.buhl-data.com/Updates/Steuer/2024/Mac/Aktuell/appcast-steuer.xml" - strategy :sparkle + regex(%r{/v?(\d+(?:\.\d+)+[^/]*)/SteuerMac2024[._-]v?(\d+(?:\.\d+)+)\.dmg}i) + strategy :sparkle do |item, regex| + match = item.url&.match(regex) + next if match.blank? + + match[1] + end end auto_updates true