switchhosts: add livecheck (#97639)

This commit is contained in:
Markus Reiter 2021-01-09 18:04:53 +01:00 committed by GitHub
parent b4033a5c58
commit a3ae3f86ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -4,11 +4,15 @@ cask "switchhosts" do
url "https://github.com/oldj/SwitchHosts/releases/download/v#{version.major_minor_patch}/SwitchHosts._macOS_#{version}.dmg",
verified: "github.com/oldj/SwitchHosts/"
appcast "https://github.com/oldj/SwitchHosts/releases.atom",
must_contain: version.major_minor_patch
name "SwitchHosts!"
desc "App to switch hosts"
homepage "https://oldj.github.io/SwitchHosts/"
livecheck do
url :url
strategy :github_latest
regex(%r{/SwitchHosts\._macOS_(\d+(?:\.\d+)*)\.dmg}i)
end
app "SwitchHosts!.app"
end