cask "grandtotal" do version "9.0.0.6" sha256 "ee59d2d5b18a717f95f4f7a3cd32637bb59d02680e3d9b957c1bcce3128fc12f" url "https://www.mediaatelier.com/GrandTotal#{version.major}/GrandTotal_#{version}.dmg" name "GrandTotal" desc "Create invoices and estimates" homepage "https://www.mediaatelier.com/GrandTotal#{version.major}/" livecheck do url "https://www.mediaatelier.com/GrandTotal#{version.major}/feed.php" regex(/GrandTotal[._-]v?(\d+(?:\.\d+)+)\.dmg/i) strategy :sparkle do |items, regex| items.map { |item| item.url[regex, 1] } end end auto_updates true depends_on macos: ">= :high_sierra" app "GrandTotal.app" zap trash: [ "~/Library/Application Support/com.mediaatelier.GrandTotal3", "~/Library/Caches/com.mediaatelier.GrandTotal3", "~/Library/HTTPStorages/com.mediaatelier.GrandTotal3", "~/Library/Preferences/com.mediaatelier.GrandTotal3.plist", "~/Library/Saved Application State/com.mediaatelier.GrandTotal3.savedState", ] end