From 118f607a043542bf78d047bc3ad5c3ed2dda2002 Mon Sep 17 00:00:00 2001 From: Jonathan Vogt Date: Thu, 29 Jul 2021 18:09:33 +0200 Subject: [PATCH] update to 0.9.0 --- clisso.rb | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/clisso.rb b/clisso.rb index c276791..21cb7c0 100644 --- a/clisso.rb +++ b/clisso.rb @@ -4,28 +4,19 @@ class Clisso < Formula desc "Get temporary credentials for cloud providers from the command-line" homepage "https://github.com/allcloud-io/clisso" - url "https://github.com/allcloud-io/clisso/archive/0.8.3.tar.gz" - sha256 "32a425eed2e98c6586230864ffe15086fae7c4bbdb20d7f8ae6cebd692951fe8" + url "https://github.com/allcloud-io/clisso/archive/0.9.0.tar.gz" + sha256 "63bf75325b24873053953fb43c7514f323970c23fac1415307cd26ef27a321ff" + version "0.9.0" - bottle do - root_url "https://github.com/allcloud-io/clisso/releases/download/0.8.3" - sha256 cellar: :any_skip_relocation, big_sur: "9b08734bb31d0cb5533724fcfb89ee13952a7dc93639be7c039cc79c94e04070" - sha256 cellar: :any_skip_relocation, catalina: "9b08734bb31d0cb5533724fcfb89ee13952a7dc93639be7c039cc79c94e04070" - sha256 cellar: :any_skip_relocation, high_sierra: "9b08734bb31d0cb5533724fcfb89ee13952a7dc93639be7c039cc79c94e04070" - end + bottle :unneeded - depends_on "go" => :build - depends_on "make" => :build + if OS.mac? && Hardware::CPU.intel? + url "https://github.com/allcloud-io/clisso/releases/download/0.9.0/clisso-darwin-amd64.zip" + sha256 "63bf75325b24873053953fb43c7514f323970c23fac1415307cd26ef27a321ff" + end def install - ENV["GOPATH"] = buildpath - ENV.prepend_create_path "PATH", buildpath/"bin" - dir = buildpath/"src/github.com/allcloud-io/clisso" - dir.install buildpath.children - [buildpath/".brew_home"] - cd dir do - ENV["VERSION"] = version - system "make", "-e", "unsigned-darwin-amd64-zip" - system "unzip", "assets/clisso-darwin-amd64.zip" + if OS.mac? && Hardware::CPU.intel? bin.install "clisso-darwin-amd64" => "clisso" end end