/
eloston-chromium.rb
39 lines (32 loc) 路 1.21 KB
/
eloston-chromium.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cask "eloston-chromium" do
arch arm: "arm64", intel: "x86-64"
version "123.0.6312.105-1.1"
sha256 arm: "e52da283ba20dcb656b721c8963af1387e5fad4c214bc89beb0c6fbac409e528",
intel: "b6cfa21d0022409a9b69f3e9d8acd29716ceaefd273e54ba1219072aca26929c"
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