mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
yu-writer: add livecheck (#97481)
This commit is contained in:
+11
-4
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user