igv 2.16.2

This commit is contained in:
Bevan Kay
2023-10-09 16:32:00 +11:00
parent 7fd81e1d13
commit bc85f2f769
+12 -1
View File
@@ -8,8 +8,19 @@ cask "igv" do
homepage "https://software.broadinstitute.org/software/igv/"
livecheck do
url "https://software.broadinstitute.org/software/igv/download"
url "https://data.broadinstitute.org/igv/projects/downloads/"
regex(/href=.*?IGV[._-]MacApp[._-]v?(\d+(?:\.\d+)+)\.zip/i)
strategy :page_match do |page, regex|
major_minor = page.scan(%r{href=["']?v?(\d+(?:\.\d+)+)/?["' >]}i).max_by do |match|
Version.new(match.first)
end.first
next if major_minor.blank?
version_page = Homebrew::Livecheck::Strategy.page_content(url.sub(%r{/$}, "") + "/#{major_minor}/")
next if version_page[:content].blank?
version_page[:content].scan(regex).map(&:first)
end
end
app "IGV_#{version}.app"