Skip to content

Commit

Permalink
Add formula for naxcli with Mac/ARM and Linux/x86_64 versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
naxgrp-asamji committed May 28, 2024
1 parent 7afc65f commit 9542592
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Formula/n/nax.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
class Nax < Formula
desc "Command-line interface for the NAX platform"
homepage "naxgrp.com"
version "0.1.13"

on_macos do
if Hardware::CPU.arm?
url "https://naxpublicstuffs.blob.core.windows.net/binaries/nax-0.1.13/nax-0.1.13-darwin-arm64.zip"
sha256 "160fa5be4eec0aac19f0c838c54f5a45a125bad7c99a4db639a16d4905619183"

def install
bin.install "nax"
end
end
end

on_linux do
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://naxpublicstuffs.blob.core.windows.net/binaries/nax-0.1.13/nax-0.1.13-linux-x86_64.zip"
sha256 "5bcea0da5693160c9db9fc6a2776fdfd2ac7644bfa54cc0ec8531183f0c92615"

def install
bin.install "nax"
end
end
end

test do
system "#{bin}/nax --version"
end
end

0 comments on commit 9542592

Please sign in to comment.