homebrew-cask/Casks/google-backup-and-sync.rb

31 lines
1.1 KiB
Ruby

cask 'google-backup-and-sync' do
version :latest
sha256 :no_check
url 'https://dl.google.com/drive/InstallBackupAndSync.dmg'
name 'Google Backup and Sync'
homepage 'https://www.google.com/drive/download/'
conflicts_with cask: 'google-photos-backup-and-sync'
app 'Backup and Sync.app'
uninstall quit: 'com.google.GoogleDrive'
zap trash: [
'~/Library/Application Scripts/com.google.GoogleDrive.FinderSyncAPIExtension',
'~/Library/Application Support/Google/Drive',
'~/Library/Caches/com.google.GoogleDrive',
'~/Library/Containers/com.google.GoogleDrive.FinderSyncAPIExtension',
'~/Library/Cookies/com.google.GoogleDrive.binarycookies',
'~/Library/Group Containers/google_drive',
'~/Library/Preferences/com.google.GoogleDrive.plist',
]
caveats <<~EOS
Although #{token} may be installed alongside google-drive-file-stream, you should not use the same account with both.
https://support.google.com/a/answer/7496409#allowboth
EOS
end