cask "eloston-chromium" do arch arm: "arm64", intel: "x86-64" version "130.0.6723.116-1.1" sha256 arm: "cfeffa806393c72184bd503631bfc4fb525ca19d0578a5c9ee8c1edcc448d04f", intel: "08a6d509a51c6056a5775e9ed9d4ba2233378d8fa532bcc917a6371dae017e5c" url "https://github.com/ungoogled-software/ungoogled-chromium-macos/releases/download/#{version}/ungoogled-chromium_#{version}_#{arch}-macos.dmg", verified: "github.com/ungoogled-software/ungoogled-chromium-macos/" name "Ungoogled Chromium" desc "Google Chromium, sans integration with Google" homepage "https://ungoogled-software.github.io/" livecheck do url :url regex(/^v?(\d+(?:[.-]\d+)+)(?:[._-]#{arch})?(?:[._-]+?(\d+(?:\.\d+)*))?$/i) strategy :github_latest do |json, regex| match = json["tag_name"]&.match(regex) next if match.blank? match[1] end end conflicts_with cask: [ "chromium", "freesmug-chromium", ] depends_on macos: ">= :big_sur" app "Chromium.app" zap trash: [ "~/Library/Application Support/Chromium", "~/Library/Caches/Chromium", "~/Library/Preferences/org.chromium.Chromium.plist", "~/Library/Saved Application State/org.chromium.Chromium.savedState", ] end