-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
/
google-chrome.rb
56 lines (51 loc) · 2.14 KB
/
google-chrome.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
cask "google-chrome" do
version "115.0.5790.170"
sha256 :no_check
url "https://dl.google.com/chrome/mac/universal/stable/GGRO/googlechrome.dmg"
name "Google Chrome"
desc "Web browser"
homepage "https://www.google.com/chrome/"
livecheck do
url :url
strategy :extract_plist do |versions|
versions.values.map(&:short_version).compact.first
end
end
auto_updates true
depends_on macos: ">= :high_sierra"
app "Google Chrome.app"
zap trash: [
"/Library/Caches/com.google.SoftwareUpdate.*",
"/Library/Google/Google Chrome Brand.plist",
"/Library/Google/GoogleSoftwareUpdate",
"~/Library/Application Support/Google/Chrome",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.google.chrome.app.*.sfl*",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.google.chrome.sfl*",
"~/Library/Caches/Google/Chrome",
"~/Library/Caches/com.google.Chrome",
"~/Library/Caches/com.google.Chrome.helper.*",
"~/Library/Caches/com.google.Keystone",
"~/Library/Caches/com.google.Keystone.Agent",
"~/Library/Caches/com.google.SoftwareUpdate",
"~/Library/Google/Google Chrome Brand.plist",
"~/Library/Google/GoogleSoftwareUpdate",
"~/Library/LaunchAgents/com.google.keystone.agent.plist",
"~/Library/LaunchAgents/com.google.keystone.xpcservice.plist",
"~/Library/Logs/GoogleSoftwareUpdateAgent.log",
"~/Library/Preferences/com.google.Chrome.plist",
"~/Library/Preferences/com.google.Keystone.Agent.plist",
"~/Library/Saved Application State/com.google.Chrome.app.*.savedState",
"~/Library/Saved Application State/com.google.Chrome.savedState",
"~/Library/WebKit/com.google.Chrome",
],
rmdir: [
"/Library/Google",
"~/Library/Application Support/Google",
"~/Library/Caches/Google",
"~/Library/Google",
],
launchctl: [
"com.google.keystone.agent",
"com.google.keystone.daemon",
]
end