Skip to content

Commit

Permalink
fix: Fixes homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
salehkhazaei committed Apr 26, 2024
1 parent e41a538 commit f1c3a67
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions homebrew/kaytu.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
class Kaytu < Formula
desc "CLI application for Kaytu"
homepage "https://github.com/kaytu-io/cli-program"
version "VERSION_HOMEBREW"
license "MIT"

if OS.mac? && Hardware::CPU.intel?
url "https://github.com/kaytu-io/cli-program/releases/download/vVERSION_HOMEBREW/ktucli-macos-amd64"
sha256 "HASH_MAC_AMD64"
def install
bin.install "ktucli-macos-amd64" => "kaytu"
end
end

if OS.mac? && Hardware::CPU.arm?
url "https://github.com/kaytu-io/cli-program/releases/download/vVERSION_HOMEBREW/ktucli-macos-arm64"
sha256 "HASH_MAC_ARM64"
def install
bin.install "ktucli-macos-arm64" => "kaytu"
end
end

if OS.linux? && Hardware::CPU.arm?
url "https://github.com/kaytu-io/cli-program/releases/download/vVERSION_HOMEBREW/ktucli-linux-arm64"
sha256 "HASH_LINUX_ARM64"
def install
bin.install "ktucli-linux-arm64" => "kaytu"
end
end

if OS.linux? && Hardware::CPU.intel?
url "https://github.com/kaytu-io/cli-program/releases/download/vVERSION_HOMEBREW/ktucli-linux-amd64"
sha256 "HASH_LINUX_AMD64"
def install
bin.install "ktucli-linux-amd64" => "kaytu"
end
end


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

0 comments on commit f1c3a67

Please sign in to comment.