forked from supermodeltools/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsupermodel.rb
More file actions
50 lines (44 loc) · 1.58 KB
/
supermodel.rb
File metadata and controls
50 lines (44 loc) · 1.58 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
44
45
46
47
48
49
50
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Supermodel < Formula
desc "Give your AI coding agent a map of your codebase"
homepage "https://supermodeltools.com"
version "0.6.0"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/supermodeltools/cli/releases/download/v0.6.0/supermodel_darwin_amd64.tar.gz"
sha256 "ec1dd115dab493b319090c9aa60c5c6c1f898549f4e1ac32165ebec862d731b4"
define_method(:install) do
bin.install "supermodel"
end
end
if Hardware::CPU.arm?
url "https://github.com/supermodeltools/cli/releases/download/v0.6.0/supermodel_darwin_arm64.tar.gz"
sha256 "414cf7aab2b6b6737d8f5e2adf7d9d2ee3ab6fa425d07dc8a54c766fb342e79e"
define_method(:install) do
bin.install "supermodel"
end
end
end
on_linux do
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/supermodeltools/cli/releases/download/v0.6.0/supermodel_linux_amd64.tar.gz"
sha256 "bf6f3dc8fe53c34fa9e078d87619a93df4b07371655f04fc8354922e66bfa96a"
define_method(:install) do
bin.install "supermodel"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/supermodeltools/cli/releases/download/v0.6.0/supermodel_linux_arm64.tar.gz"
sha256 "cb84b0f9c5b6ddd81e849410127d8652b7aa426f81557a045e781b1af66008e6"
define_method(:install) do
bin.install "supermodel"
end
end
end
test do
system "#{bin}/supermodel", "version"
end
end