From 1614c88e3b119966b034f0e66c252ac1fed28ea5 Mon Sep 17 00:00:00 2001 From: Klaus Hipp Date: Thu, 20 Jun 2024 17:08:56 +0200 Subject: [PATCH] cinc-workstation 24.6.1066 --- Casks/c/cinc-workstation.rb | 47 +++++++++++++++++++++++++++++-------- 1 file changed, 37 insertions(+), 10 deletions(-) diff --git a/Casks/c/cinc-workstation.rb b/Casks/c/cinc-workstation.rb index 36fc4fb9ea328..e1a446d846a49 100644 --- a/Casks/c/cinc-workstation.rb +++ b/Casks/c/cinc-workstation.rb @@ -1,21 +1,48 @@ cask "cinc-workstation" do arch arm: "arm64", intel: "x86_64" - version "24.4.1064" - sha256 arm: "4365418ae6f2387cc925fede5245bb40e8c7432629728a546bed625efe2f20bb", - intel: "85752c80079b9a9d2038bbdaba30b764f8dd2dfb23f62652e68592e9dea917ce" + on_big_sur do + version "24.4.1064" + sha256 arm: "4365418ae6f2387cc925fede5245bb40e8c7432629728a546bed625efe2f20bb", + intel: "85752c80079b9a9d2038bbdaba30b764f8dd2dfb23f62652e68592e9dea917ce" + + url "https://downloads.cinc.sh/files/stable/cinc-workstation/#{version}/mac_os_x/11/cinc-workstation-#{version}-1.#{arch}.dmg" + + livecheck do + url "https://omnitruck.cinc.sh/stable/cinc-workstation/metadata?p=mac_os_x&pv=11&m=#{arch}&v=latest" + regex(/version\s*(\d+(?:\.\d+)+)/i) + end + end + on_monterey do + version "24.6.1066" + sha256 arm: "922e96d0de1c9e15ac254e5b927d80283dc40be5b071f62df669f96bb74e456f", + intel: "560e08048d10b78d02ec44a6e478a8c0acf082df274f644394211d6a47519974" + + url "https://downloads.cinc.sh/files/stable/cinc-workstation/#{version}/mac_os_x/12/cinc-workstation-#{version}-1.#{arch}.dmg" + + livecheck do + url "https://omnitruck.cinc.sh/stable/cinc-workstation/metadata?p=mac_os_x&pv=12&m=#{arch}&v=latest" + regex(/version\s*(\d+(?:\.\d+)+)/i) + end + end + on_ventura :or_newer do + version "24.6.1066" + sha256 arm: "d5825eefa0f7eb2dc8df253e219035e87f9d761b23aa108428b61e75cc641747", + intel: "1a1f8d2465c872d8462e5322165c7fa49c5ff48776ad48bffd94bb9869a21088" + + url "https://downloads.cinc.sh/files/stable/cinc-workstation/#{version}/mac_os_x/13/cinc-workstation-#{version}-1.#{arch}.dmg" + + livecheck do + url "https://omnitruck.cinc.sh/stable/cinc-workstation/metadata?p=mac_os_x&pv=13&m=#{arch}&v=latest" + regex(/version\s*(\d+(?:\.\d+)+)/i) + end + end - url "https://downloads.cinc.sh/files/stable/cinc-workstation/#{version}/mac_os_x/11/cinc-workstation-#{version}-1.#{arch}.dmg" name "Cinc Workstation" desc "Installer for Chef infrastructure management tools" homepage "https://cinc.sh/start/workstation/" - livecheck do - url "https://omnitruck.cinc.sh/stable/cinc-workstation/metadata?p=mac_os_x&pv=11&m=#{arch}&v=latest" - regex(/version\s*(\d+(?:\.\d+)+)/i) - end - - depends_on macos: ">= :mojave" + depends_on macos: ">= :big_sur" pkg "cinc-workstation-#{version}-1.#{arch}.pkg"