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

43 lines
1.5 KiB
Ruby

cask "eloston-chromium" do
arch arm: "arm64", intel: "x86-64"
on_arm do
version "116.0.5845.179-1.1,1694497969"
sha256 "939f8b6bba3f7a3f180dcda9de8a90230a5dd0285298c4c84912ef38be6619ad"
end
on_intel do
version "116.0.5845.179-1.1,1694137996"
sha256 "d59a55cb34fec6ea1e54233978905c4220509106778c3861018107e6d9c881dc"
end
url "https://github.com/ungoogled-software/ungoogled-chromium-macos/releases/download/#{version.csv.first}_#{arch}__#{version.csv.second}/ungoogled-chromium_#{version.csv.first}_#{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 "https://github.com/ungoogled-software/ungoogled-chromium-macos/releases?q=prerelease%3Afalse"
regex(%r{href=["']?[^"' >]*?/tree/v?(\d+(?:[.-]\d+)+)(?:[._-]#{arch})?(?:[._-]+?(\d+(?:\.\d+)*))?["' >]}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
(match.length > 1) ? "#{match[0]},#{match[1]}" : match[0]
end
end
end
conflicts_with cask: [
"chromium",
"freesmug-chromium",
]
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