Skip to content

Commit

Permalink
mullvadvpn@beta: migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanazamfirei committed Apr 30, 2024
1 parent 9e6c977 commit f920579
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
41 changes: 41 additions & 0 deletions Casks/m/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
cask "mullvadvpn@beta" do
version "2024.2-beta1"
sha256 "4770625008315c85a5c231ff38ec005e4133329bda0cb25544337f7887656f2b"

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 :url
regex(/^v?(\d+(?:\.\d+)+[._-]beta\d*)$/i)
strategy :github_releases do |json, regex|
json.map do |release|
next if release["draft"]

match = release["tag_name"]&.match(regex)
next if match.blank?

match[1]
end
end
end

conflicts_with cask: "mullvadvpn"

pkg "MullvadVPN-#{version}.pkg"

uninstall launchctl: "net.mullvad.daemon",
quit: "net.mullvad.vpn",
pkgutil: "net.mullvad.vpn"

zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/net.mullvad.vpn.sfl*",
"~/Library/Application Support/Mullvad VPN",
"~/Library/Logs/Mullvad VPN",
"~/Library/Preferences/net.mullvad.vpn.helper.plist",
"~/Library/Preferences/net.mullvad.vpn.plist",
]
end
1 change: 1 addition & 0 deletions audit_exceptions/github_prerelease_allowlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"majsoul-plus": "all",
"messenger-native": "all",
"mongotron": "all",
"mullvadvpn@beta": "all",
"my-budget": "all",
"nuclear": "all",
"plugdata": "all",
Expand Down

0 comments on commit f920579

Please sign in to comment.