cask "ungoogled-chromium" do arch arm: "arm64", intel: "x86_64" version "138.0.7204.49-1.1" sha256 arm: "bc218094dae20e876ec57206272f4859f406c606cab7c92d3c2c1c318313d380", intel: "ac8681bbcbe36660111ec3b06a234fcf3b0477648985050c52ebc7f20ccdba92" 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" 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