From c7e59150556cd3b2e5ffa4a570d53cb7cda1583c Mon Sep 17 00:00:00 2001 From: goreleaserbot Date: Fri, 13 Mar 2026 17:48:00 +0800 Subject: [PATCH] Brew formula update for phase_cli version v2.0.0-rc.2 --- phase.rb | 50 ++++++++++++++++++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 16 deletions(-) diff --git a/phase.rb b/phase.rb index 1f5597c..f0bc47a 100644 --- a/phase.rb +++ b/phase.rb @@ -1,29 +1,47 @@ +# typed: false +# frozen_string_literal: true + +# This file was generated by GoReleaser. DO NOT EDIT. class Phase < Formula desc "Securely manage your secrets and environment variables with Phase." homepage "https://github.com/phasehq/cli" - version "1.21.3" + version "2.0.0-rc.2" + license "GPL-3.0" on_macos do - on_arm do - url "https://github.com/phasehq/cli/releases/download/v#{version}/phase_cli_macos_arm64_#{version}.zip" - sha256 "5810fa35e1a2c62628a06b293b20f9cd4dc693210295851efb134971266fb444" + if Hardware::CPU.intel? + url "https://github.com/phasehq/cli/releases/download/v2.0.0-rc.2/phase_cli_2.0.0-rc.2_darwin_amd64" + sha256 "91ed8cfbf2b867de5a32ab771c20fa65282fffe6c1386291be66f7220242eef0" + + define_method(:install) do + bin.install "phase" + end end + if Hardware::CPU.arm? + url "https://github.com/phasehq/cli/releases/download/v2.0.0-rc.2/phase_cli_2.0.0-rc.2_darwin_arm64" + sha256 "8eac8fdb86dc0f8ee18048bedba438da4ba18142a8b6cc3bae280235a945287f" - on_intel do - url "https://github.com/phasehq/cli/releases/download/v#{version}/phase_cli_macos_amd64_#{version}.zip" - sha256 "02abc2aa71d3e9be9fa2a74af3cd81fb7f349f81485c343b1b9a58b750fd7a78" + define_method(:install) do + bin.install "phase" + end end end - def install - # Install the phase binary - bin.install "phase/phase" - - # Install the _internal directory in the bin directory - bin.install "phase/_internal" - - # Set execution permissions for the phase binary - chmod 0755, bin/"phase" + on_linux do + if Hardware::CPU.intel? && Hardware::CPU.is_64_bit? + url "https://github.com/phasehq/cli/releases/download/v2.0.0-rc.2/phase_cli_2.0.0-rc.2_linux_amd64" + sha256 "1aedfa2e567e1d8bfbc3130138a08e23c0c75b4de86d63309e50eb33058f9016" + define_method(:install) do + bin.install "phase" + end + end + if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? + url "https://github.com/phasehq/cli/releases/download/v2.0.0-rc.2/phase_cli_2.0.0-rc.2_linux_arm64" + sha256 "faefa22360051b9db0eeaded419eee800ab06d9d74ca81c0c716c0c7b997583d" + define_method(:install) do + bin.install "phase" + end + end end test do