vapor: bump version, add livecheck, update url (#110316)

This commit is contained in:
Bevan Kay
2021-08-21 16:54:13 +10:00
committed by GitHub
parent d3903cb0fb
commit 31a7254075
+10 -5
View File
@@ -1,14 +1,19 @@
cask "vapor" do
version "3.4.0"
sha256 "ebe3494eb45c098bdc3df0e4cb41a6699f7856147633d90388e99cb3b4221710"
version "3.5.0,03_08_21-15.48"
sha256 "16e321be63def7c16002bdc09f2ab403fe9ad4f85595a2f24d9069e8d6530dab"
url "https://github.com/NCAR/VAPOR/releases/download/#{version}/VAPOR3-#{version}-Darwin.dmg"
url "https://github.com/NCAR/VAPOR/releases/download/#{version.before_comma}/VAPOR3-#{version.before_comma}-Darwin-#{version.after_comma}.dmg"
name "VAPOR"
desc "Visualization and analysis platform"
homepage "https://github.com/NCAR/VAPOR"
livecheck do
url :url
strategy :github_latest
url "https://github.com/NCAR/VAPOR/releases/latest"
regex(/href=.*?VAPOR3[._-]v?(\d+(?:\.\d+)+)[._-]Darwin[._-](.+)\.dmg/i)
strategy :page_match do |page, regex|
page.scan(regex)
.map { |match| "#{match[0]},#{match[1]}" }
end
end
app "vapor.app"