Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / m / mullvadvpn.rb
blobaf6abd4ab4332343b7350e947be94f3512a36862
1 cask "mullvadvpn" do
2   version "2024.7"
3   sha256 "86dc6a6602015c3639509f2315b346119704ea0e5df7d22600f9e24f5c276759"
5   url "https://github.com/mullvad/mullvadvpn-app/releases/download/#{version}/MullvadVPN-#{version}.pkg",
6       verified: "github.com/mullvad/mullvadvpn-app/"
7   name "Mullvad VPN"
8   desc "VPN client"
9   homepage "https://mullvad.net/"
11   livecheck do
12     url "https://mullvad.net/download/app/pkg/latest/"
13     strategy :header_match
14   end
16   conflicts_with cask: "mullvadvpn@beta"
17   depends_on macos: ">= :big_sur"
19   pkg "MullvadVPN-#{version}.pkg"
21   uninstall launchctl: "net.mullvad.daemon",
22             pkgutil:   "net.mullvad.vpn",
23             delete:    [
24               "/Library/Caches/mullvad-vpn",
25               "/Library/LaunchDaemons/net.mullvad.daemon.plist",
26               "/opt/homebrew/share/fish/vendor_completions.d/mullvad.fish",
27               "/usr/local/share/fish/vendor_completions.d/mullvad.fish",
28               "/usr/local/share/zsh/site-functions/_mullvad",
29               "/var/log/mullvad-vpn",
30             ]
32   zap trash: [
33     "/etc/mullvad-vpn",
34     "~/Library/Application Support/Mullvad VPN",
35     "~/Library/Logs/Mullvad VPN",
36     "~/Library/Preferences/net.mullvad.vpn.plist",
37   ]
38 end