Casks/e/eloston-chromium.rb
cask "eloston-chromium" do
arch arm: "arm64", intel: "x86-64"
version "128.0.6613.119-1.1"
sha256 arm: "5a77a6084cbba9d5f5e91fb6b8616d3b327ca616372bc1eb485b31af43df523c",
intel: "5c1471630b4b37dfd50e341daf8521be993bac9c095c28b121c45812034035cf"
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: ">= :catalina"
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