homebrew-cask/Casks/google-chrome.rb

55 lines
2.5 KiB
Ruby

cask 'google-chrome' do
version '64.0.3282.140'
sha256 '706c20d0490249ac11620323fb2bab9f2be5582b6cded521191ffe39f03310c6'
url 'https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg'
appcast 'https://omahaproxy.appspot.com/history?os=mac;channel=stable',
checkpoint: 'd590cdf287516dc1850b0e356b4ddadad9927a5278aafdb477d9356f2c79e25d'
name 'Google Chrome'
homepage 'https://www.google.com/chrome/'
auto_updates true
conflicts_with cask: [
'google-chrome-beta',
'google-chrome-dev',
]
depends_on macos: '>= :mavericks'
app 'Google Chrome.app'
uninstall launchctl: [
'com.google.keystone.agent',
'com.google.keystone.daemon',
]
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/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',
]
end