cask "arc" do version "1.19.1,43687" sha256 "1dc442f253f39d479e7a89d348405e9a33b9649ac3ebd27d95ec779573e849e4" url "https://releases.arc.net/release/Arc-#{version.csv.first}-#{version.csv.second}.zip" name "Arc" desc "Chromium based browser" homepage "https://arc.net/" livecheck do url "https://releases.arc.net/updates.xml" regex(%r{/Arc[._-]v?(\d+(?:\.\d+)+)[._-](\d+).zip}i) strategy :sparkle do |item, regex| match = item.url.match(regex) next if match.blank? "#{match[1]},#{match[2]}" end end auto_updates true depends_on macos: ">= :monterey" app "Arc.app" uninstall quit: "company.thebrowser.Browser" zap trash: [ "~/Library/Application Support/Arc", "~/Library/Caches/Arc", "~/Library/Caches/CloudKit/company.thebrowser.Browser", "~/Library/Caches/company.thebrowser.Browser", "~/Library/HTTPStorages/company.thebrowser.Browser", "~/Library/HTTPStorages/company.thebrowser.Browser.binarycookies", "~/Library/Preferences/company.thebrowser.Browser.plist", "~/Library/Saved Application State/company.thebrowser.Browser.savedState", "~/Library/WebKit/company.thebrowser.Browser", ] end