From 303ce74f5944b254619d1fe85c18218b642e4f91 Mon Sep 17 00:00:00 2001 From: Eric Knibbe Date: Tue, 5 Sep 2023 22:00:49 -0400 Subject: [PATCH] calhash: use static URLs for each system block https://github.com/Homebrew/brew/pull/15956#issuecomment-1706959261 --- Casks/c/calhash.rb | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/Casks/c/calhash.rb b/Casks/c/calhash.rb index 0f00442cab..b5593491e2 100644 --- a/Casks/c/calhash.rb +++ b/Casks/c/calhash.rb @@ -1,30 +1,38 @@ cask "calhash" do + sha256 :no_check + + on_mojave :or_older do + depends_on macos: ">= :catalina" + end on_catalina do version "1.0.5" - sha256 "bb15c18839837bdeda203a8a916b09b4f2b971e5bba10b603f290130939d3bf7" + + url "https://www.titanium-software.fr/download/1015/CalHash.dmg" depends_on macos: :catalina end on_big_sur do version "1.1.1" - sha256 "66b2de6f514119b3ddf915310b94486d24d3cc6733c74af97e367b76cb2d7478" + + url "https://www.titanium-software.fr/download/11/CalHash.dmg" depends_on macos: :big_sur end on_monterey do version "1.1.9" - sha256 "6a8b9ddd3ed4acf4e8a84c8fe78a6ed783c526d84d38bf00acaf1b37311bf223" + + url "https://www.titanium-software.fr/download/12/CalHash.dmg" depends_on macos: :monterey end - on_ventura do + on_ventura :or_newer do version "1.2.1" - sha256 "5372c281ab6edbd10f4a6a237a7e9afb529222b62f39c3b0357d779672cbaa6d" - depends_on macos: :ventura + url "https://www.titanium-software.fr/download/13/CalHash.dmg" + + depends_on macos: "<= :ventura" end - url "https://www.titanium-software.fr/download/#{MacOS.version.to_s.delete(".")}/CalHash.dmg" name "CalHash" desc "Calculate and compare file checksums" homepage "https://www.titanium-software.fr/en/calhash.html"