cask "copilot-money" do version "6.0.4,297-64727179" sha256 "647271793b3e1599d4603cc1b320b6d5b9131a17045133389867d78c4ac03c38" url "https://storage.googleapis.com/copilot-mac-releases/images/Copilot-#{version.csv.first}-#{version.csv.second}.dmg", verified: "storage.googleapis.com/copilot-mac-releases/" name "Copilot" desc "Track and budget money" homepage "https://copilot.money/" livecheck do url "https://releases.copilot.money/last_release?channel=production" regex(/copilot[._-](\d+(?:\.\d+)+)-(\d+-\h+)/i) strategy :json do |json, regex| json["url"]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]}" } end end auto_updates true depends_on macos: ">= :monterey" app "Copilot.app" zap trash: [ "~/Library/Containers/com.copilot.production", "~/Library/Group Containers/group.com.copilot.production", ] end