Merge pull request #200213 from Homebrew/bump-tidelift-1.14.0
[Homebrew/homebrew-cask.git] / Casks / n / nordvpn.rb
blobb4b863e9f17014a68f2bc028bdc1378436c07539
1 cask "nordvpn" do
2   version "8.33.1"
3   sha256 "f40031be888a5fd56b369272edc2a7ad433acc7b9f95c2f10ce8304bca5ad1d5"
5   url "https://downloads.nordcdn.com/apps/macos/generic/NordVPN-OpenVPN/#{version}/NordVPN.pkg",
6       verified: "downloads.nordcdn.com/apps/macos/generic/"
7   name "NordVPN"
8   desc "VPN client for secure internet access and private browsing"
9   homepage "https://nordvpn.com/"
11   livecheck do
12     url "https://downloads.nordcdn.com/apps/macos/generic/NordVPN-OpenVPN/latest/update_pkg.xml"
13     strategy :sparkle, &:short_version
14   end
16   auto_updates true
17   depends_on macos: ">= :big_sur"
19   pkg "NordVPN.pkg"
21   uninstall launchctl:  [
22               "com.nordvpn.macos.helper",
23               "com.nordvpn.NordVPN.Helper",
24             ],
25             quit:       [
26               "com.nordvpn.macos",
27               "com.nordvpn.macos.NordVPNLauncher",
28             ],
29             login_item: "NordVPN",
30             pkgutil:    "com.nordvpn.macos",
31             delete:     [
32               "/Library/PrivilegedHelperTools/com.nordvpn.macos.helper",
33               "/Library/PrivilegedHelperTools/com.nordvpn.macos.ovpnDnsManager",
34               "/Library/PrivilegedHelperTools/ovpn",
35             ]
37   zap trash: [
38     "~/Library/Application Support/com.nordvpn.macos",
39     "~/Library/Caches/com.nordvpn.macos",
40     "~/Library/Containers/com.nordvpn.NordVPN.*",
41     "~/Library/Cookies/com.nordvpn.macos.binarycookies",
42     "~/Library/Logs/NordVPN/",
43     "~/Library/Preferences/com.nordvpn.macos.plist",
44     "~/Library/Saved Application State/com.nordvpn.macos.savedState",
45   ]
46 end