cask "onyx" do sha256 :no_check # NOTE: We use separate `url` values in each of the macOS on_system blocks # so that the API data correctly includes URL variants for each. on_tahoe :or_older do on_big_sur :or_older do version "4.0.2" url "https://www.titanium-software.fr/download/11/OnyX.dmg" end on_monterey do version "4.2.7" url "https://www.titanium-software.fr/download/12/OnyX.dmg" end on_ventura do version "4.4.7" url "https://www.titanium-software.fr/download/13/OnyX.dmg" end on_sonoma do version "4.6.2" url "https://www.titanium-software.fr/download/14/OnyX.dmg" end on_sequoia do version "4.8.5" url "https://www.titanium-software.fr/download/15/OnyX.dmg" end on_tahoe do version "5.0.5" url "https://www.titanium-software.fr/download/26/OnyX.dmg" end livecheck do skip "Legacy version" end end on_golden_gate :or_newer do version "5.1.0" url "https://www.titanium-software.fr/download/27/OnyX.dmg" # We check the version on the homepage, as the version in the related plist # file can be out of date. livecheck do url :homepage regex(/>\s*OnyX\s+v?(\d+(?:\.\d+)+)\s+for\s+[\w\s]*27\s*