cask "ungoogled-chromium" do arch arm: "arm64", intel: "x86_64" version "152.0.7977.82-1.1" sha256 arm: "ba673876533e79b3c09edaf3ebd0dadcc29e9d0112b9b843d8c032cfb7bfb457", intel: "00ccc73e63f979fdabbc18ca67999b2abcd409ac662fbd2cd6f86b0f32904588" url "https://github.com/ungoogled-software/ungoogled-chromium-macos/releases/download/#{version}/ungoogled-chromium_#{version}_#{arch}-macos.dmg" 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: :ventura 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