3 sha256 "e770e5a199c34688f087b00b86e8a36cb6a27c6a413f3ca7c3ebde87f6104f2a"
5 url "https://static.adguard.com/mac/release/AdGuard-#{version}.dmg"
7 desc "Stand alone ad blocker"
8 homepage "https://adguard.com/"
11 url "https://static.adguard.com/mac/adguard-release-appcast.xml"
12 strategy :sparkle do |item|
13 item.short_version.delete_suffix(" release")
18 conflicts_with cask: "adguard@nightly"
19 depends_on macos: ">= :catalina"
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",
29 quit: "com.adguard.mac.adguard",
30 pkgutil: "com.adguard.mac.adguard-pkg",
32 "/Library/Application Support/AdGuard Software/com.adguard.mac.adguard",
33 "/Library/Application Support/com.adguard.Adguard",
34 "/Library/com.adguard.mac.adguard.pac",
36 rmdir: "/Library/Application Support/AdGuard Software"
38 zap delete: "/Library/Logs/com.adguard.mac.adguard",
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",