Skip to content

Commit

Permalink
llmdog v1.0.0: update formula to serve both arm64 and amd64 assets
Browse files Browse the repository at this point in the history
  • Loading branch information
doganarif committed Feb 4, 2025
1 parent 114c37f commit 7b1de22
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Formula/l/llmdog.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
class Llmdog < Formula
desc "Prepare files for LLM consumption"
homepage "https://github.com/doganarif/llmdog"
url "https://github.com/doganarif/llmdog/archive/refs/tags/v1.0.0.tar.gz"
sha256 "532bb4a1db5143c9c4fa61728184a0af0c9f47b56387453239b0b9b820a41079"
license "MIT"

if Hardware::CPU.arm?
url "https://github.com/doganarif/llmdog/releases/download/v1.0.0/llmdog_v1.0.0_darwin_arm64.tar.gz"
sha256 "e49a0895db86f26afbf58fbbda36235969567e8813f652b8623e1432237f3a01"
else
url "https://github.com/doganarif/llmdog/releases/download/v1.0.0/llmdog_v1.0.0_darwin_amd64.tar.gz"
sha256 "a9ae51041ca15bc8c8e9060eb8181e23b175ec67dfdc179796453b263d3dc39b"
end

depends_on "go" => :build

def install
system "go", "build", *std_go_args(ldflags: "-s -w"), "./cmd/llmdog"
# Assumes the tarball contains a prebuilt binary named "llmdog"
bin.install "llmdog"
end

test do
Expand Down

0 comments on commit 7b1de22

Please sign in to comment.