Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding homebrew formular to allow to install quix-cli via homebrew #58

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions quix-cli.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
class QuixCli < Formula
desc "Quix CLI"
homepage "https://github.com/quixio/quix-cli"
version "latest" # Or specify a specific version if desired
license "MIT"

# Define the URLs for the binaries based on architecture
if Hardware::CPU.intel?
url "https://github.com/quixio/quix-cli/releases/latest/download/osx-x64.tar.gz"
sha256 "b966d3db258866183ddd9002ca910ddbd9af7460c82f3fb7c2e057ae96fc5ffb"
elsif Hardware::CPU.arm?
url "https://github.com/quixio/quix-cli/releases/latest/download/osx-arm64.tar.gz"
sha256 "60739eb440654b226ec5ccfb1da953693d8a8ee5e1a71b32ed1f717c6e82709e"
else
odie "Unsupported architecture"
end

def install
bin.install "quix" # Installs the binary into the Homebrew bin folder
end

def post_install
# Any post-installation actions like signing the binary
if OS.mac?
system "codesign", "-s", "-", "#{bin}/quix"
end
end

test do
# Basic test to verify installation
system "#{bin}/quix", "--version"
end
end