leela: add livecheck (#97779)

This commit is contained in:
Markus Reiter 2021-01-10 19:12:31 +01:00 committed by GitHub
parent bd31cee47d
commit 011b811db5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -3,11 +3,16 @@ cask "leela" do
sha256 "f2c11799f7b548e1ca1f6ba8dca330d9ec44eed4d1a53439b5bceef86e0d0ae1"
url "https://sjeng.org/dl/Leela_#{version}.dmg"
appcast "https://sjeng.org/leela.html"
name "Leela"
desc "Go playing program with easy to use graphical interface"
homepage "https://sjeng.org/leela.html"
livecheck do
url "https://sjeng.org/leela.html"
strategy :page_match
regex(%r{href=.*?/Leela_(\d+(?:\.\d+)*)\.dmg}i)
end
depends_on macos: ">= :sierra"
app "Leela.app"