Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / k / kdrive.rb
blobaaded43e004255196662b2070860e0315db406ef
1 cask "kdrive" do
2   version "3.6.6.20241001"
3   sha256 "f9369b033c10fc8681b15420b7cffe3fca3521ad97ee22335928872e96e53c0b"
5   url "https://download.storage.infomaniak.com/drive/desktopclient/kDrive-#{version}.pkg"
6   name "kDrive"
7   desc "Client for the kDrive collaborative cloud storage service"
8   homepage "https://www.infomaniak.com/kdrive"
10   livecheck do
11     url "https://www.infomaniak.com/drive/latest"
12     strategy :json do |json|
13       json.dig("macos", "version")
14     end
15   end
17   depends_on macos: ">= :catalina"
19   pkg "kDrive-#{version}.pkg"
21   uninstall launchctl:  "864VDCS2QY.com.infomaniak.drive.desktopclient.LoginItemAgent",
22             quit:       [
23               "com.infomaniak.drive.desktopclient",
24               "com.infomaniak.drive.desktopclient.Extension",
25             ],
26             login_item: "kDrive",
27             pkgutil:    [
28               "com.infomaniak.drive.desktopclient",
29               "com.infomaniak.drive.desktopclient.Extension",
30               "com.infomaniak.drive.uninstaller",
31             ],
32             delete:     "/Applications/kDrive/kDrive Uninstaller.app",
33             rmdir:      "/Applications/kDrive"
35   zap trash: [
36     "~/Library/Application Scripts/864VDCS2QY.com.infomaniak.drive.desktopclient.LoginItemAgent",
37     "~/Library/Application Scripts/com.infomaniak.drive.desktopclient.Extension",
38     "~/Library/Caches/com.infomaniak.drive.desktopclient",
39     "~/Library/Containers/864VDCS2QY.com.infomaniak.drive.desktopclient.LoginItemAgent",
40     "~/Library/Containers/com.infomaniak.drive.desktopclient.Extension",
41     "~/Library/Cookies/com.infomaniak.drive.desktopclient.binarycookies",
42     "~/Library/Group Containers/864VDCS2QY.com.infomaniak.drive.desktopclient",
43     "~/Library/Preferences/com.infomaniak.drive.desktopclient.plist",
44     "~/Library/Preferences/kDrive",
45   ]
46 end