From c862dd79e81fb1dc16325fc955b623fd67e75813 Mon Sep 17 00:00:00 2001 From: Antonis Kalipetis Date: Wed, 19 Oct 2022 16:09:51 +0200 Subject: [PATCH] Brew formula update for platform version 4.0.0-beta.3 --- Formula/platformsh-cli.rb | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/Formula/platformsh-cli.rb b/Formula/platformsh-cli.rb index a448fe3..bb7d85b 100644 --- a/Formula/platformsh-cli.rb +++ b/Formula/platformsh-cli.rb @@ -3,14 +3,18 @@ # This file was generated by GoReleaser. DO NOT EDIT. class PlatformshCli < Formula - desc "Platform.sh CLI." + desc "Platform.sh CLI" homepage "https://docs.platform.sh/administration/cli.html" - version "4.0.0-beta.2" + version "4.0.0-beta.3" license "MIT" + depends_on "git" => :optional + depends_on "oniguruma" + depends_on "openssl@1.1" + on_macos do - url "https://github.com/platformsh/homebrew-tap/releases/download/4.0.0-beta.2/platform_4.0.0-beta.2_darwin_all.tar.gz" - sha256 "92ac488ab3af5437c9207fbe0f1cb88404fffbd6bbb8d87dd12e4dd5623cbbe6" + url "https://github.com/platformsh/homebrew-tap/releases/download/4.0.0-beta.3/platform_4.0.0-beta.3_darwin_all.tar.gz" + sha256 "0d34414a5ad162825ff698e980cc5e6af05493f9d06f5cb87a7acb24d8f0809c" def install bin.install "platform" @@ -19,18 +23,22 @@ def install on_linux do if Hardware::CPU.intel? - url "https://github.com/platformsh/homebrew-tap/releases/download/4.0.0-beta.2/platform_4.0.0-beta.2_linux_amd64.tar.gz" - sha256 "99e56fd8eef50db8433dc588375815a7cdd4d407ceac22ae18c0955811cb6e16" + url "https://github.com/platformsh/homebrew-tap/releases/download/4.0.0-beta.3/platform_4.0.0-beta.3_linux_amd64.tar.gz" + sha256 "c50f0b9d117bf45a7b532271dfcdf906b2c4f64719b69c4ad28ade7381233080" def install bin.install "platform" end end - end + if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? + url "https://github.com/platformsh/homebrew-tap/releases/download/4.0.0-beta.3/platform_4.0.0-beta.3_linux_arm64.tar.gz" + sha256 "294d2935dc0489f7710528f7a79db9962ee21767a0d480b8b512bdb0d9e15770" - depends_on "git" => :optional - depends_on "oniguruma" - depends_on "openssl@1.1" + def install + bin.install "platform" + end + end + end test do system "#{bin}/platform --version"