-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathopencode.rb
More file actions
45 lines (40 loc) · 1.36 KB
/
opencode.rb
File metadata and controls
45 lines (40 loc) · 1.36 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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Opencode < Formula
desc ""
homepage ""
version "0.0.55"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/opencode-ai/opencode/releases/download/v0.0.55/opencode-mac-x86_64.tar.gz"
sha256 "87b2ab64d81fbf19cdf7535dae2f004f67fb501b9b98956b59cce44a644f1fac"
def install
bin.install "opencode"
end
end
if Hardware::CPU.arm?
url "https://github.com/opencode-ai/opencode/releases/download/v0.0.55/opencode-mac-arm64.tar.gz"
sha256 "d560e5cdbeffc38522e172a1b31d346ee23200d1a46d1e96f092bb9e1ba1f41d"
def install
bin.install "opencode"
end
end
end
on_linux do
if Hardware::CPU.intel? and Hardware::CPU.is_64_bit?
url "https://github.com/opencode-ai/opencode/releases/download/v0.0.55/opencode-linux-x86_64.tar.gz"
sha256 "7f1f41203e7920aec48f3e2216d334e9ce8c6d0a7b107ceb758fefa4d4c98025"
def install
bin.install "opencode"
end
end
if Hardware::CPU.arm? and Hardware::CPU.is_64_bit?
url "https://github.com/opencode-ai/opencode/releases/download/v0.0.55/opencode-linux-arm64.tar.gz"
sha256 "530eb136fdfc9eadef96aa2250bbdb9210e9f7cc1bd4f733d332ca9dd61d22e0"
def install
bin.install "opencode"
end
end
end
end