-
Notifications
You must be signed in to change notification settings - Fork 12
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.14"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/supermodeltools/cli/releases/download/v0.6.14/supermodel_darwin_amd64.tar.gz"
sha256 "2a55471f3664fdd7944ef9e6898f035fe373595a5fdf37f5adc7d2c60a5e927f"
define_method(:install) do
bin.install "supermodel"
end
end
if Hardware::CPU.arm?
url "https://github.com/supermodeltools/cli/releases/download/v0.6.14/supermodel_darwin_arm64.tar.gz"
sha256 "7de99a9480c508cadcdc5d8aa2458a53613157bb5dea0ca996771ff24ee609a5"
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.14/supermodel_linux_amd64.tar.gz"
sha256 "9f4d9febd5bb309e9ebb893716c700811b6fb0ee092be4b5a046a3661f1202b9"
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.14/supermodel_linux_arm64.tar.gz"
sha256 "8ee2ca7c0a2651e1c1bd731fa7991344fb62e3415d32ae3e04e0cdb139d579f9"
define_method(:install) do
bin.install "supermodel"
end
end
end
test do
system "#{bin}/supermodel", "version"
end
end