Merge pull request #198803 from Homebrew/bump-wizcli-0.69.0
[Homebrew/homebrew-cask.git] / Casks / a / adguard-vpn.rb
blob2fe4905fddd3f6e002fcfd8311ad8e42b0b0229d
1 cask "adguard-vpn" do
2   version "2.5.0.719"
3   sha256 "d75dc0350cff973ec2e1f096091b4736866694405e192b01409dbca61819e183"
5   url "https://static.adguard-vpn.com/mac/release/AdGuardVPN-#{version}.dmg"
6   name "AdGuard VPN"
7   desc "VPN for privacy and security"
8   homepage "https://adguard-vpn.com/"
10   livecheck do
11     url "https://static.adguard-vpn.com/mac/adguard-release-appcast.xml"
12     strategy :sparkle do |item|
13       item.short_version.delete_suffix(" release")
14     end
15   end
17   auto_updates true
18   conflicts_with cask: "adguard-vpn@nightly"
19   depends_on macos: ">= :catalina"
21   pkg "AdGuard VPN.pkg"
23   uninstall launchctl: [
24               "com.adguard.mac.vpn.tun-helper",
25               "com.adguard.mac.vpn.vpn_helper",
26             ],
27             quit:      "com.adguard.mac.vpn",
28             pkgutil:   "com.adguard.mac.vpn-pkg",
29             delete:    [
30               "/Library/Application Support/AdGuard Software/com.adguard.mac.vpn",
31               "/Library/Application Support/com.adguard.mac.vpn",
32               "/Library/Logs/com.adguard.mac.vpn",
33             ],
34             rmdir:     "/Library/Application Support/AdGuard Software"
36   zap trash: [
37     "~/Library/Application Scripts/*com.adguard.mac*",
38     "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.adguard.mac.vpn.launchatlogin.sfl*",
39     "~/Library/Caches/com.adguard.mac.vpn",
40     "~/Library/Containers/com.adguard.mac.vpn.launchatlogin",
41     "~/Library/Group Containers/*.com.adguard.mac",
42     "~/Library/HTTPStorages/com.adguard.mac.vpn",
43     "~/Library/Preferences/com.adguard.mac.vpn.plist",
44   ]
45 end