-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopencode.rb
51 lines (44 loc) · 1.41 KB
/
opencode.rb
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
51
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Opencode < Formula
desc ""
homepage ""
version "0.0.29"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/opencode-ai/opencode/releases/download/v0.0.29/opencode-mac-x86_64.tar.gz"
sha256 "f44e9e60706153eca4a5c87667ce8249521267ee8d8a6823bedf854b5a3127fd"
def install
bin.install "opencode"
end
end
if Hardware::CPU.arm?
url "https://github.com/opencode-ai/opencode/releases/download/v0.0.29/opencode-mac-arm64.tar.gz"
sha256 "e6553c912f27a8d394d4bb940d3e59d236ef548a4cfc1ada83eedd9bd97934f8"
def install
bin.install "opencode"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/opencode-ai/opencode/releases/download/v0.0.29/opencode-linux-x86_64.tar.gz"
sha256 "609668c1ad703cf5bc0977a506231db58033ab2cec368f4c305f7ed337a80e39"
def install
bin.install "opencode"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/opencode-ai/opencode/releases/download/v0.0.29/opencode-linux-arm64.tar.gz"
sha256 "309d2acc48b1f33e7e5defa9a5185f0ce0765b49f03b13f101b057a30f343d45"
def install
bin.install "opencode"
end
end
end
end
end