forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
adguard.rb
32 lines (26 loc) · 912 Bytes
/
adguard.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
cask "adguard" do
version "2.5.3.955"
sha256 "449a8ca91c8755eef4f5f3f247dfdfcdbf8c2a1096ad01f20d983d1ddafb38bc"
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.sub(/ release.*/, "")
end
end
auto_updates true
pkg "AdGuard.pkg"
uninstall pkgutil: "com.adguard.mac.adguard-pkg"
zap trash: [
"/Library/Application Support/com.adguard.Adguard",
"~/Library/Application Support/Adguard",
"~/Library/Application Support/com.adguard.Adguard",
"~/Library/Caches/com.adguard.Adguard",
"~/Library/Cookies/com.adguard.Adguard.binarycookies",
"~/Library/Logs/Adguard",
"~/Library/Preferences/com.adguard.Adguard.plist",
]
end