homebrew-cask/Casks/torguard.rb

28 lines
778 B
Ruby

cask "torguard" do
version "4.8.16"
sha256 "a02706ed0901c2564c89c90ce14082b839efef4e1bcd3d23980ef592247abbf2"
url "https://updates.torguard.biz/Software/MacOSX/TorGuard-v#{version}.dmg",
verified: "torguard.biz/"
name "TorGuard"
desc "VPN client"
homepage "https://torguard.net/"
livecheck do
url "https://updates.torguard.biz/Software/MacOSX/checksums.sha256"
regex(/TorGuard[._-]v?(\d+(?:\.\d+)+)\.dmg/i)
end
depends_on macos: ">= :sierra"
pkg "Install TorGuard.pkg"
uninstall pkgutil: "net.torguard.TorGuardDesktopQt",
delete: "/Applications/TorGuard.app"
zap trash: [
"~/Library/Preferences/net.torguard.TorGuard*.plist",
"~/Library/Saved Application State/net.torguard.TorGuardDesktopQt.savedState",
]
end