1 cask "wiso-steuer-2024" do
2 # NOTE: "2024" is not a version number, but an intrinsic part of the product name
3 version "31.10.4250-HF1"
4 sha256 "4708beadca3ef2f322f235c74c8fce38d7e62794731602a12931abba8c2ced18"
6 url "https://update.buhl-data.com/Updates/Steuer/2024/Mac/Files/#{version}/SteuerMac2024-#{version.split("-").first}.dmg",
7 verified: "update.buhl-data.com/Updates/Steuer/"
8 name "WISO Steuer 2024"
9 desc "Tax declaration for the fiscal year 2023"
10 homepage "https://www.buhl.de/download/wiso-steuer-2024/"
13 url "https://update.buhl-data.com/Updates/Steuer/2024/Mac/Aktuell/appcast-steuer.xml"
14 regex(%r{/v?(\d+(?:\.\d+)+[^/]*)/SteuerMac2024[._-]v?(\d+(?:\.\d+)+)\.dmg}i)
15 strategy :sparkle do |item, regex|
16 match = item.url&.match(regex)
24 depends_on macos: ">= :catalina"
26 # Renamed for consistency: app name differs in Finder to shell
27 app "SteuerMac 2024.app", target: "WISO Steuer 2024.app"
30 "~/Library/Application Support/BuhlData.com/WISOsteuerMac2024",
31 "~/Library/Caches/com.BuhlData.WISOsteuerMac2024",
32 "~/Library/HTTPStorages/com.BuhlData.WISOsteuerMac2024",
33 "~/Library/Preferences/com.buhldata.WISOsteuerMac2024.plist",
34 "~/Library/Saved Application State/com.BuhlData.WISOsteuerMac2024.savedState",
35 "~/Library/WebKit/com.BuhlData.WISOsteuerMac2024",