homebrew-cask/Casks/i/ivpn.rb

36 lines
941 B
Ruby

cask "ivpn" do
arch arm: "-arm64"
version "3.12.0"
sha256 arm: "9a08e5455e1c14475a22d22b698509dcfa184909321f51624495a204c6fbe961",
intel: "a5d53be80054db17a46498a46f5327a89484f6cf4b5c6795a08db4cbe5137269"
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 delete: [
"/Library/Application Support/IVPN",
"/Library/PrivilegedHelperTools/net.ivpn.client.Helper",
],
launchctl: "net.ivpn.client.Helper",
quit: "net.ivpn.client.IVPN"
zap trash: "~/Library/Preferences/net.ivpn.client.IVPN.plist"
end