excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / adguard.rb
blob4401dbc4c74ac3f161349402d92c906cc1999436
1 cask "adguard" do
2   version "2.15.2.1734"
3   sha256 "e770e5a199c34688f087b00b86e8a36cb6a27c6a413f3ca7c3ebde87f6104f2a"
5   url "https://static.adguard.com/mac/release/AdGuard-#{version}.dmg"
6   name "AdGuard"
7   desc "Stand alone ad blocker"
8   homepage "https://adguard.com/"
10   livecheck do
11     url "https://static.adguard.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@nightly"
19   depends_on macos: ">= :catalina"
21   pkg "AdGuard.pkg"
23   uninstall launchctl: [
24               "com.adguard.mac.adguard.helper",
25               "com.adguard.mac.adguard.pac",
26               "com.adguard.mac.adguard.tun-helper",
27               "com.adguard.mac.adguard.xpcgate2",
28             ],
29             quit:      "com.adguard.mac.adguard",
30             pkgutil:   "com.adguard.mac.adguard-pkg",
31             delete:    [
32               "/Library/Application Support/AdGuard Software/com.adguard.mac.adguard",
33               "/Library/Application Support/com.adguard.Adguard",
34               "/Library/com.adguard.mac.adguard.pac",
35             ],
36             rmdir:     "/Library/Application Support/AdGuard Software"
38   zap delete: "/Library/Logs/com.adguard.mac.adguard",
39       trash:  [
40         "~/Library/Application Scripts/*com.adguard.mac*",
41         "~/Library/Application Support/Adguard",
42         "~/Library/Application Support/com.adguard.*",
43         "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.adguard.mac.adguard.loginhelper.sfl*",
44         "~/Library/Caches/com.adguard.*",
45         "~/Library/Containers/com.adguard.mac.*",
46         "~/Library/Cookies/com.adguard.Adguard.binarycookies",
47         "~/Library/Group Containers/*.com.adguard.mac",
48         "~/Library/HTTPStorages/com.adguard.mac.*",
49         "~/Library/Logs/Adguard",
50         "~/Library/Preferences/com.adguard.*.plist",
51         "~/Library/Saved Application State/com.adguard.mac.adguard.savedState",
52       ]
53 end