forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
google-chrome.rb
34 lines (29 loc) · 1.31 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
cask :v1 => 'google-chrome' do
version :latest
sha256 :no_check
url 'https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg'
name 'Google Chrome'
homepage 'https://www.google.com/chrome/'
license :gratis
tags :vendor => 'Google'
app 'Google Chrome.app'
zap :delete => [
'~/Library/Application Support/Google/Chrome',
'~/Library/Caches/Google/Chrome',
'~/Library/Caches/com.google.Chrome',
'~/Library/Caches/com.google.Chrome.helper.EH',
'~/Library/Caches/com.google.Keystone.Agent',
'~/Library/Caches/com.google.SoftwareUpdate',
'~/Library/Google/GoogleSoftwareUpdate',
'~/Library/Logs/GoogleSoftwareUpdateAgent.log',
],
:rmdir => [
'~/Library/Caches/Google',
'~/Library/Google',
]
caveats <<-EOS.undent
The Mac App Store version of 1Password won't work with a Homebrew-Cask-linked Google Chrome. To bypass this limitation, you need to either:
+ Move Google Chrome to your /Applications directory (the app itself, not a symlink).
+ Install 1Password from outside the Mac App Store (licenses should transfer automatically, but you should contact AgileBits about it).
EOS
end