forked from rtk-ai/rtk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrtk.rb
More file actions
43 lines (36 loc) · 1.14 KB
/
Copy pathrtk.rb
File metadata and controls
43 lines (36 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# typed: false
# frozen_string_literal: true
# Homebrew formula for rtk - Rust Token Killer
# To install: brew tap rtk-ai/tap && brew install rtk
class Rtk < Formula
desc "High-performance CLI proxy to minimize LLM token consumption"
homepage "https://www.rtk-ai.app"
version "0.1.0"
license "MIT"
on_macos do
on_intel do
url "https://github.com/rtk-ai/rtk/releases/download/v#{version}/rtk-x86_64-apple-darwin.tar.gz"
sha256 "PLACEHOLDER_SHA256_INTEL"
end
on_arm do
url "https://github.com/rtk-ai/rtk/releases/download/v#{version}/rtk-aarch64-apple-darwin.tar.gz"
sha256 "PLACEHOLDER_SHA256_ARM"
end
end
on_linux do
on_intel do
url "https://github.com/rtk-ai/rtk/releases/download/v#{version}/rtk-x86_64-unknown-linux-gnu.tar.gz"
sha256 "PLACEHOLDER_SHA256_LINUX_INTEL"
end
on_arm do
url "https://github.com/rtk-ai/rtk/releases/download/v#{version}/rtk-aarch64-unknown-linux-gnu.tar.gz"
sha256 "PLACEHOLDER_SHA256_LINUX_ARM"
end
end
def install
bin.install "rtk"
end
test do
assert_match "rtk #{version}", shell_output("#{bin}/rtk --version")
end
end