Files
homebrew-cask/Casks/e/eloston-chromium.rb

40 lines
1.2 KiB
Ruby

cask "eloston-chromium" do
arch arm: "arm64", intel: "x86-64"
version "122.0.6261.94-1.1"
sha256 arm: "a04d49f166e1b662aec8194a54a57ef444f06faeaa42bf7d8e0b13dffc93389e",
intel: "94cecb10652d91974fa4588e3be371b199aba1e5a33a693852ac4429ed439b04"
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/ungoogled-chromium-binaries/"
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