From 7421ec3fd919546cb774a3e06eecd4773184ec80 Mon Sep 17 00:00:00 2001 From: goreleaserbot Date: Fri, 13 Mar 2026 18:22:48 +0800 Subject: [PATCH] Brew formula update for phase_cli version v2.0.0-rc.3 --- phase.rb | 50 ++++++++++++++++++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 16 deletions(-) diff --git a/phase.rb b/phase.rb index 1f5597c..8f11d1e 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.3" + 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.3/phase_cli_2.0.0-rc.3_darwin_amd64" + sha256 "d6dd6c22cf411bdd6b123a7443d262b70b93438ceadf8c6ab566d8d756c5e9a6" + + define_method(:install) do + bin.install Dir.glob("phase_cli_*").first => "phase" + end end + if Hardware::CPU.arm? + url "https://github.com/phasehq/cli/releases/download/v2.0.0-rc.3/phase_cli_2.0.0-rc.3_darwin_arm64" + sha256 "c805f798bfec135b98a6b835a3dfa4a7922b19ef71ffc08bcf9b21b92740f86a" - 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 Dir.glob("phase_cli_*").first => "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.3/phase_cli_2.0.0-rc.3_linux_amd64" + sha256 "41c29eae32f6e85a125317bbea90590891231f51b199c9e2a15ac918e71624a7" + define_method(:install) do + bin.install Dir.glob("phase_cli_*").first => "phase" + end + end + if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? + url "https://github.com/phasehq/cli/releases/download/v2.0.0-rc.3/phase_cli_2.0.0-rc.3_linux_arm64" + sha256 "f7ed5cc57dae4fd02c1f09494eaf98e4f011b0eb344919bf571804905bfb961c" + define_method(:install) do + bin.install Dir.glob("phase_cli_*").first => "phase" + end + end end test do