60 lines
2.4 KiB
Ruby
60 lines
2.4 KiB
Ruby
cask "google-drive" do
|
|
version "79.0.2"
|
|
sha256 :no_check
|
|
|
|
url "https://dl.google.com/drive-file-stream/5-percent/GoogleDrive.dmg"
|
|
name "Google Drive"
|
|
desc "Client for the Google Drive storage service"
|
|
homepage "https://www.google.com/drive/"
|
|
|
|
livecheck do
|
|
url :url
|
|
strategy :extract_plist
|
|
end
|
|
|
|
auto_updates true
|
|
depends_on macos: ">= :el_capitan"
|
|
|
|
pkg "GoogleDrive.pkg"
|
|
|
|
# Some launchctl and pkgutil items are shared with other Google apps, they should only be removed in the zap stanza
|
|
# See: https://github.com/Homebrew/homebrew-cask/pull/92704#issuecomment-727163169
|
|
# launchctl: com.google.keystone.daemon, com.google.keystone.system.agent, com.google.keystone.system.xpcservice
|
|
# pkgutil: com.google.pkg.Keystone
|
|
uninstall login_item: "Google Drive",
|
|
quit: "com.google.drivefs",
|
|
pkgutil: [
|
|
"com.google.drivefs.arm64",
|
|
"com.google.drivefs.filesystems.dfsfuse.arm64",
|
|
"com.google.drivefs.filesystems.dfsfuse.x86_64",
|
|
"com.google.drivefs.shortcuts",
|
|
"com.google.drivefs.x86_64",
|
|
]
|
|
|
|
zap trash: [
|
|
"~/Library/Application Scripts/com.google.drivefs.finderhelper.findersync",
|
|
"~/Library/Application Scripts/com.google.drivefs.finderhelper",
|
|
"~/Library/Application Scripts/com.google.drivefs.fpext",
|
|
"~/Library/Application Support/FileProvider/com.google.drivefs.fpext",
|
|
"~/Library/Application Support/Google/DriveFS",
|
|
"~/Library/Caches/com.google.drivefs",
|
|
"~/Library/Containers/com.google.drivefs.finderhelper.findersync",
|
|
"~/Library/Containers/com.google.drivefs.finderhelper",
|
|
"~/Library/Containers/com.google.drivefs.fpext",
|
|
"~/Library/Group Containers/EQHXZ8M8AV.group.com.google.drivefs",
|
|
"~/Library/Group Containers/group.com.google.drivefs",
|
|
"~/Library/Preferences/com.google.drivefs.helper.renderer.plist",
|
|
"~/Library/Preferences/com.google.drivefs.plist",
|
|
"~/Library/Preferences/com.google.drivefs.settings.plist",
|
|
"~/Library/Preferences/Google Drive File Stream Helper.plist",
|
|
],
|
|
launchctl: [
|
|
"com.google.keystone.agent",
|
|
"com.google.keystone.daemon",
|
|
"com.google.keystone.system.agent",
|
|
"com.google.keystone.system.xpcservice",
|
|
"com.google.keystone.xpcservice",
|
|
],
|
|
pkgutil: "com.google.pkg.Keystone"
|
|
end
|