homebrew-cask/Casks/google-drive-file-stream.rb

30 lines
941 B
Ruby

cask 'google-drive-file-stream' do
version :latest
sha256 :no_check
url 'https://dl.google.com/drive-file-stream/GoogleDriveFileStream.dmg'
name 'Google Drive File Stream'
homepage 'https://www.google.com/drive/'
depends_on macos: '>= :el_capitan'
pkg 'GoogleDriveFileStream.pkg'
uninstall login_item: 'Google Drive File Stream',
quit: 'com.google.drivefs',
pkgutil: 'com.google.drivefs'
zap trash: [
'~/Library/Application Support/Google/DriveFS',
'~/Library/Caches/com.google.drivefs',
'~/Library/Preferences/Google Drive File Stream Helper.plist',
'~/Library/Preferences/com.google.drivefs.plist',
]
caveats <<~EOS
Although #{token} may be installed alongside Google Backup and Sync, you should not use the same account with both.
https://support.google.com/a/answer/7496409#allowboth
EOS
end