-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
/
cyberghost-vpn.rb
31 lines (26 loc) · 1.15 KB
/
cyberghost-vpn.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
cask "cyberghost-vpn" do
version "8.4.3,224"
sha256 "8a66ad28e3723c48d4278ed6522428b0777df66500b059d0910c512af00ac1f1"
url "https://download.cyberghostvpn.com/mac/updates/v7/CyberGhost-#{version.csv.first}-#{version.csv.second}.dmg"
name "CyberGhost"
desc "VPN client"
homepage "https://www.cyberghostvpn.com/"
# Some older items in the Sparkle feed have a more recent pubDate, so it's necessary to
# work with all of the items in the feed (not just the newest one).
livecheck do
url "https://download.cyberghostvpn.com/mac/updates/v7/cyberghost_mac_update_v3.inf"
strategy :sparkle do |items|
items.map { |item| "#{item.short_version},#{item.version}" }
end
end
depends_on macos: ">= :high_sierra"
app "CyberGhost VPN.app"
zap trash: [
"~/Library/Caches/com.cyberghostsrl.cyberghostmac",
"~/Library/HTTPStorages/com.cyberghostsrl.cyberghostmac",
"~/Library/Logs/com.cyberghostsrl.cyberghostmac",
"~/Library/Preferences/com.cyberghostsrl.cyberghostmac.plist",
"~/Library/Saved Application State/com.cyberghostsrl.cyberghostmac.savedState",
"~/Library/WebKit/com.cyberghostsrl.cyberghostmac",
]
end