diff --git a/Casks/yu-writer.rb b/Casks/yu-writer.rb index 79b21ffce0..de5f377789 100644 --- a/Casks/yu-writer.rb +++ b/Casks/yu-writer.rb @@ -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"