1 cask "wiso-steuer-2022" do
2 # NOTE: "2022" is not a version number, but an intrinsic part of the product name
3 version "29.15.4410-HF1"
4 sha256 "4220eb5630481e2634cc571bcf806196445cb2b3b07db988273ea94aeac90563"
6 url "https://update.buhl-data.com/Updates/Steuer/2022/Mac/Files/#{version}/SteuerMac2022-#{version.split("-").first}.dmg",
7 verified: "update.buhl-data.com/Updates/Steuer/"
8 name "WISO Steuer 2022"
9 desc "Tax declaration for the fiscal year 2021"
10 homepage "https://www.buhl.de/download/wiso-steuer-2022/"
13 url "https://update.buhl-data.com/Updates/Steuer/2022/Mac/Aktuell/appcast-steuer.xml"
14 regex(%r{/v?(\d+(?:\.\d+)+[^/]*)/SteuerMac2022[._-]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 2022.app", target: "WISO Steuer-Mac 2022.app"
30 "~/Library/Application Support/BuhlData.com/WISOsteuerMac2022",
31 "~/Library/Caches/com.BuhlData.WISOsteuerMac2022",
32 "~/Library/HTTPStorages/com.BuhlData.WISOsteuerMac2022",
33 "~/Library/Preferences/com.buhldata.WISOsteuerMac2022.plist",
34 "~/Library/Saved Application State/com.BuhlData.WISOsteuerMac2022.savedState",
35 "~/Library/WebKit/com.BuhlData.WISOsteuerMac2022",