mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
jasp: update version, livecheck
This commit is contained in:
+8
-3
@@ -2,18 +2,23 @@ cask "jasp" do
|
||||
arch arm: "arm64", intel: "x86_64"
|
||||
livecheck_folder = on_arch_conditional arm: "-apple-silicon"
|
||||
|
||||
version "0.18.3.0"
|
||||
version "0.18.3.0,2"
|
||||
sha256 arm: "9d701af21055dca67a98fc8269720d6d23bcfb82cceb3fa8f4774cb74d197bbb",
|
||||
intel: "37c10c0fb3c53b1b01fc4cf696b21273a62b7eb224eaa2ef0632b36cbcfa94ae"
|
||||
|
||||
url "https://static.jasp-stats.org/JASP-#{version}-macOS-#{arch}_2.dmg"
|
||||
url "https://static.jasp-stats.org/JASP-#{version.csv.first}-macOS-#{arch}#{"_#{version.csv.second}" if version.csv.second}.dmg"
|
||||
name "JASP"
|
||||
desc "Statistical analysis application"
|
||||
homepage "https://jasp-stats.org/"
|
||||
|
||||
livecheck do
|
||||
url "https://jasp-stats.org/thank-you-for-downloading-jasp-macos#{livecheck_folder}/"
|
||||
regex(/href=.*?JASP[._-]v?(\d+(?:\.\d+)+)[._-]macOS[._-]#{arch}_2\.dmg/i)
|
||||
regex(/href=.*?JASP[._-]v?(\d+(?:\.\d+)+)[._-]macOS[._-]#{arch}(?:_(\d+))?\.dmg/i)
|
||||
strategy :page_match do |page, regex|
|
||||
page.scan(regex).map do |match|
|
||||
(match.length > 1) ? "#{match[0]},#{match[1]}" : match[0]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
depends_on macos: ">= :monterey"
|
||||
|
||||
Reference in New Issue
Block a user