forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e6c977
commit f920579
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters