yu-writer: add livecheck (#97481)

This commit is contained in:
Markus Reiter
2021-01-08 03:33:24 +01:00
committed by GitHub
parent 80ddb7e089
commit 78bfd1d84c
+11 -4
View File
@@ -2,11 +2,18 @@ cask "yu-writer" do
version "0.5.3,beta"
sha256 "4fff4042c6ac7c047097c5e6d59a8a1c3f9dacfbdcadb3121904426413b38e06"
url "https://github.com/ivarptr/yu-writer.site/releases/download/v#{version.before_comma}/yu-writer-#{version.after_comma}-#{version.before_comma}-macos.dmg",
verified: "github.com/ivarptr/yu-writer.site/"
appcast "https://github.com/ivarptr/yu-writer.site/releases.atom"
url "https://github.com/hemashushu/yu-writer.site/releases/download/v#{version.before_comma}/yu-writer-#{version.after_comma}-#{version.before_comma}-macos.dmg",
verified: "github.com/hemashushu/yu-writer.site/"
name "Yu Writer"
homepage "https://ivarptr.github.io/yu-writer.site/"
homepage "https://hemashushu.github.io/yu-writer.site/"
livecheck do
url :homepage
strategy :page_match do |page|
match = page.match(%r{href=.*?/yu-writer-(?:([a-z]+)-)?(\d+(?:\.\d+)*)-macos\.dmg}i)
"#{match[2]},#{match[1]}"
end
end
app "Yu Writer.app"