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