diff --git a/Casks/p/p4.rb b/Casks/p/p4.rb index 5029f25115..e0a995d06c 100644 --- a/Casks/p/p4.rb +++ b/Casks/p/p4.rb @@ -1,8 +1,11 @@ cask "p4" do - version "2023.2,2535420" - sha256 "8a24804e48247104a1e59e99620e57bbe456018fef84b2dff911175908057017" + arch arm: "12arm64", intel: "1015x86_64" - url "https://filehost.perforce.com/perforce/r#{version.major[-2..]}.#{version.minor}/bin.macosx1015x86_64/p4" + version "2023.2,2535420" + sha256 arm: "00264b87bf4ebb26286bc089fc0686d913d921b9b39bc67bf436af3702ac18b1", + intel: "8a24804e48247104a1e59e99620e57bbe456018fef84b2dff911175908057017" + + url "https://filehost.perforce.com/perforce/r#{version.major[-2..]}.#{version.minor}/bin.macosx#{arch}/p4" name "Perforce Helix Command-Line Client (P4)" desc "Use it to gain instant access to operations and complete control over the system" homepage "https://www.perforce.com/products/helix-core-apps/command-line-client" @@ -16,10 +19,10 @@ cask "p4" do end conflicts_with cask: "perforce" - depends_on macos: ">= :high_sierra" + depends_on macos: ">= :sierra" container type: :naked - binary "bin.macosx1015x86_64", target: "p4" + binary "bin.macosx#{arch}", target: "p4" # No zap stanza required end diff --git a/Casks/p/perforce.rb b/Casks/p/perforce.rb index 7b37817462..2808ff5358 100644 --- a/Casks/p/perforce.rb +++ b/Casks/p/perforce.rb @@ -1,8 +1,11 @@ cask "perforce" do - version "2023.2,2535420" - sha256 "dbccb96d5a954a038ae6f3f49bf7ec9cd43b7094bec56f04ecb2c8ea41a93a8e" + arch arm: "12arm64", intel: "1015x86_64" - url "https://filehost.perforce.com/perforce/r#{version.major[-2..]}.#{version.minor}/bin.macosx1015x86_64/helix-core-server.tgz" + version "2023.2,2535420" + sha256 arm: "51d6052f9809013aaadab66d2568e827b41b21927894d2794ececad51c25c5b5", + intel: "dbccb96d5a954a038ae6f3f49bf7ec9cd43b7094bec56f04ecb2c8ea41a93a8e" + + url "https://filehost.perforce.com/perforce/r#{version.major[-2..]}.#{version.minor}/bin.macosx#{arch}/helix-core-server.tgz" name "Perforce Helix Core Server" name "Perforce Helix Command-Line Client (P4)" name "Perforce Helix Broker (P4Broker)"