-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
ivpn.rb
35 lines (27 loc) 路 942 Bytes
/
ivpn.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
33
34
35
cask "ivpn" do
arch arm: "-arm64"
version "3.14.12"
sha256 arm: "eb41d2049ae30518b940eafc439043d527729070dea6b8df0165923055b64949",
intel: "802426e0ab7eacd1bb2b9da39eb31d59cf3c0d250073b77692449a4d9ec77dbe"
url "https://repo.ivpn.net/macos/bin/IVPN-#{version}#{arch}.dmg"
name "IVPN"
desc "VPN client"
homepage "https://www.ivpn.net/apps-macos"
livecheck do
url :homepage
regex(/href=.*?IVPN[._-]v?(\d+(?:\.\d+)+)#{arch}\.dmg/i)
end
auto_updates true
depends_on macos: ">= :mojave"
app "IVPN.app"
uninstall_preflight do
set_ownership "#{appdir}/IVPN.app"
end
uninstall launchctl: "net.ivpn.client.Helper",
quit: "net.ivpn.client.IVPN",
delete: [
"/Library/Application Support/IVPN",
"/Library/PrivilegedHelperTools/net.ivpn.client.Helper",
]
zap trash: "~/Library/Preferences/net.ivpn.client.IVPN.plist"
end