cask "adguard" do version "2.15.2.1734" sha256 "e770e5a199c34688f087b00b86e8a36cb6a27c6a413f3ca7c3ebde87f6104f2a" url "https://static.adguard.com/mac/release/AdGuard-#{version}.dmg" name "AdGuard" desc "Stand alone ad blocker" homepage "https://adguard.com/" livecheck do url "https://static.adguard.com/mac/adguard-release-appcast.xml" strategy :sparkle do |item| item.short_version.delete_suffix(" release") end end auto_updates true conflicts_with cask: "adguard@nightly" depends_on macos: ">= :catalina" pkg "AdGuard.pkg" uninstall launchctl: [ "com.adguard.mac.adguard.helper", "com.adguard.mac.adguard.pac", "com.adguard.mac.adguard.tun-helper", "com.adguard.mac.adguard.xpcgate2", ], quit: "com.adguard.mac.adguard", pkgutil: "com.adguard.mac.adguard-pkg", delete: [ "/Library/Application Support/AdGuard Software/com.adguard.mac.adguard", "/Library/Application Support/com.adguard.Adguard", "/Library/com.adguard.mac.adguard.pac", ], rmdir: "/Library/Application Support/AdGuard Software" zap delete: "/Library/Logs/com.adguard.mac.adguard", trash: [ "~/Library/Application Scripts/*com.adguard.mac*", "~/Library/Application Support/Adguard", "~/Library/Application Support/com.adguard.*", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.adguard.mac.adguard.loginhelper.sfl*", "~/Library/Caches/com.adguard.*", "~/Library/Containers/com.adguard.mac.*", "~/Library/Cookies/com.adguard.Adguard.binarycookies", "~/Library/Group Containers/*.com.adguard.mac", "~/Library/HTTPStorages/com.adguard.mac.*", "~/Library/Logs/Adguard", "~/Library/Preferences/com.adguard.*.plist", "~/Library/Saved Application State/com.adguard.mac.adguard.savedState", ] end