mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
extraterm: update livecheck
This commit is contained in:
+14
-3
@@ -12,9 +12,20 @@ cask "extraterm" do
|
||||
# This should be updated to use the `GithubLatest` strategy if/when stable
|
||||
# versions become available.
|
||||
livecheck do
|
||||
url "https://github.com/sedwards2009/extraterm/releases"
|
||||
regex(%r{href=["']?[^"' >]*?/tag/v?(\d+(?:\.\d+)+)["' >]}i)
|
||||
strategy :page_match
|
||||
url :url
|
||||
regex(/^v?(\d+(?:\.\d+)+)$/i)
|
||||
strategy :github_releases do |json, regex|
|
||||
json.map do |release|
|
||||
# This omits the usual `release["prerelease"]` early return condition,
|
||||
# as we need to work with pre-release versions for now.
|
||||
next if release["draft"]
|
||||
|
||||
match = release["tag_name"]&.match(regex)
|
||||
next if match.blank?
|
||||
|
||||
match[1]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
app "ExtratermQt.app"
|
||||
|
||||
Reference in New Issue
Block a user