41 lines
1.3 KiB
Ruby
41 lines
1.3 KiB
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",
|
|
"com.google.drivefs.shortcuts",
|
|
"com.google.pkg.Keystone",
|
|
],
|
|
launchctl: [
|
|
"com.google.keystone.agent",
|
|
"com.google.keystone.system.agent",
|
|
"com.google.keystone.daemon",
|
|
"com.google.keystone.xpcservice",
|
|
"com.google.keystone.system.xpcservice",
|
|
]
|
|
|
|
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
|