Files
homebrew-cask/Casks/m/mullvadvpn.rb
2023-10-10 09:41:22 -04:00

36 lines
1.0 KiB
Ruby

cask "mullvadvpn" do
version "2023.5"
sha256 "1f345da489c2a9c47c056c58a89ee49dbf40c0ae6f6ffa7268e78fbd23667bd8"
url "https://github.com/mullvad/mullvadvpn-app/releases/download/#{version}/MullvadVPN-#{version}.pkg",
verified: "github.com/mullvad/mullvadvpn-app/"
name "Mullvad VPN"
desc "VPN client"
homepage "https://mullvad.net/"
livecheck do
url "https://mullvad.net/download/app/pkg/latest/"
strategy :header_match
end
conflicts_with cask: "homebrew/cask-versions/mullvadvpn-beta"
depends_on macos: ">= :big_sur"
pkg "MullvadVPN-#{version}.pkg"
uninstall pkgutil: "net.mullvad.vpn",
launchctl: "net.mullvad.daemon",
delete: [
"/Library/Caches/mullvad-vpn",
"/Library/LaunchDaemons/net.mullvad.daemon.plist",
"/var/log/mullvad-vpn",
]
zap trash: [
"/etc/mullvad-vpn",
"~/Library/Application Support/Mullvad VPN",
"~/Library/Logs/Mullvad VPN",
"~/Library/Preferences/net.mullvad.vpn.plist",
]
end