-
Notifications
You must be signed in to change notification settings - Fork 2
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.3.1"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/supermodeltools/cli/releases/download/v0.3.1/supermodel_darwin_amd64.tar.gz"
sha256 "6b183b4caff51427365fa3eda26517087eeb1ddd7c709b3052dd62270748c4c9"
define_method(:install) do
bin.install "supermodel"
end
end
if Hardware::CPU.arm?
url "https://github.com/supermodeltools/cli/releases/download/v0.3.1/supermodel_darwin_arm64.tar.gz"
sha256 "5b431ab0cc0fcf0ef7e684d03dcfc8e6e1f8d1d0f65a7dbc57d96fbbc0e4ae08"
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.3.1/supermodel_linux_amd64.tar.gz"
sha256 "44b57428e6fe4b4a32301116d7ceeb19d9755480c4128184672ac5e17e6847ed"
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.3.1/supermodel_linux_arm64.tar.gz"
sha256 "36d815e8fb27a740d88720800370fa08d1c9b6026e57d8b00c999bbbcc2a62b1"
define_method(:install) do
bin.install "supermodel"
end
end
end
test do
system "#{bin}/supermodel", "version"
end
end