homebrew-cask/Casks/google-earth-pro.rb

22 lines
969 B
Ruby

cask 'google-earth-pro' do
version '7.3.2.5491'
sha256 'a3a2699cdea4502b42ee6c82831331152d2b3188dc75dce612bf452ba2e793e6'
url 'https://dl.google.com/earth/client/advanced/current/GoogleEarthProMac-Intel.dmg'
name 'Google Earth Pro'
homepage 'https://www.google.com/earth/'
pkg "Install Google Earth Pro #{version}.pkg"
uninstall pkgutil: 'com.Google.GoogleEarthPro'
zap trash: [
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.google.googleearthpro.sfl*',
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.google.googleearthupdatehelper.sfl*',
'~/Library/Application Support/Google Earth',
'~/Library/Caches/Google Earth',
'~/Library/Caches/com.Google.GoogleEarthPro',
],
pkgutil: 'com.google.pkg.Keystone'
end