Merge pull request #198799 from Homebrew/bump-huly-0.6.411
[Homebrew/homebrew-cask.git] / Casks / n / nordlocker.rb
blob5c2380132641808df9e260bdcb4542ce65b40ff9
1 cask "nordlocker" do
2   version "4.26.1"
3   sha256 :no_check
5   url "https://downloads.nordcdn.com/apps/macos/generic/NordLocker/latest11plus/latest/NordLocker.pkg",
6       verified: "downloads.nordcdn.com/apps/macos/generic/NordLocker/"
7   name "NordLocker"
8   desc "Store and sync files securely"
9   homepage "https://nordlocker.com/"
11   livecheck do
12     url "https://downloads.nordcdn.com/apps/macos/generic/NordLocker/latest11plus/latest/update_pkg_11plus.xml"
13     strategy :sparkle, &:short_version
14   end
16   auto_updates true
17   depends_on macos: ">= :big_sur"
19   pkg "NordLocker.pkg"
21   uninstall launchctl:  [
22               "com.nordlocker.macos.launcher",
23               "com.nordlocker.nordfs.Mounter.Helper",
24             ],
25             quit:       [
26               "com.nordlocker.macos",
27               "com.nordlocker.macos.launcher",
28             ],
29             login_item: "NordLocker",
30             pkgutil:    "com.nordlocker.macos",
31             delete:     "/Library/PrivilegedHelperTools/com.nordlocker.nordfs.Mounter.Helper"
33   zap trash: [
34     "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.nordlocker.macos.sfl*",
35     "~/Library/Caches/com.nordlocker.macos",
36     "~/Library/Cookies/com.nordlocker.macos.binarycookies",
37     "~/Library/Preferences/com.nordlocker.macos.plist",
38     "~/Library/Preferences/group.com.nordlocker.macos.firebase.plist",
39     "~/Library/Saved Application State/com.nordlocker.macos.savedState",
40     "~/Library/WebKit/com.nordlocker.macos",
41   ]
42 end