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 "117.0.5938.62-1.1,1695024143"
sha256 "0d171c1fa5920397e4a49557c0d041715d5fda112dd4dbc97f75b137abe1888e"
end
on_intel do
version "117.0.5938.62-1.1,1694986322"
sha256 "d0e4fc0fa50ff5c91d460317e1959f8053d2884dc676e9dbca971204d16c5090"
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