main
rb 28 lines 816 Bytes
Raw
1 # frozen_string_literal: true
2
3 # Homebrew formula for siGit Code (`sigit` binary).
4 class Sigit < Formula
5 desc 'AI coding agent powered by local LLM via Onde Inference'
6 homepage 'https://github.com/getsigit/sigit'
7 version '1.3.2'
8 license 'Apache-2.0'
9
10 on_macos do
11 on_arm do
12 url 'https://github.com/getsigit/sigit/releases/download/v1.3.2/sigit-macos-arm64.tar.gz'
13 sha256 '9b09177b356307bee0b3b19e87d5908bdbafb2670fe2b96f8e5613b9122ba78e'
14 end
15 on_intel do
16 url 'https://github.com/getsigit/sigit/releases/download/v1.3.2/sigit-macos-amd64.tar.gz'
17 sha256 '2b3376796c3ce49f5057b34cced915084212d96b73e8106a253a709953af973a'
18 end
19 end
20
21 def install
22 bin.install 'sigit'
23 end
24
25 test do
26 assert_match version.to_s, shell_output("#{bin}/sigit --version", 1)
27 end
28 end