Skip to content

Commit 1e5c459

Browse files
authored
Merge pull request #254064 from Homebrew/bump-opencode-1.0.58
opencode 1.0.58
2 parents 4b86c6c + 264d7ee commit 1e5c459

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

Formula/o/opencode.rb

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,33 @@
11
class Opencode < Formula
22
desc "AI coding agent, built for the terminal"
33
homepage "https://opencode.ai"
4-
url "https://registry.npmjs.org/opencode-ai/-/opencode-ai-1.0.55.tgz"
5-
sha256 "1193162c390d75be2fb9372bf16d3ed7f8381099871cc0cabaacfe900e5428b6"
4+
url "https://registry.npmjs.org/opencode-ai/-/opencode-ai-1.0.58.tgz"
5+
sha256 "cfbb397f5eb7488430af7aff855df4412a720f789d152a42fedae340ff7da971"
66
license "MIT"
77

88
bottle do
9-
sha256 arm64_tahoe: "46522d30877a51badf48f296bc25480d68a80af646c5789c3efc29ce66a666a9"
10-
sha256 arm64_sequoia: "46522d30877a51badf48f296bc25480d68a80af646c5789c3efc29ce66a666a9"
11-
sha256 arm64_sonoma: "46522d30877a51badf48f296bc25480d68a80af646c5789c3efc29ce66a666a9"
12-
sha256 cellar: :any_skip_relocation, sonoma: "87b83988937a785608bee2ee873e7cff5ddf701aefe335da412e6f46b492bfae"
13-
sha256 cellar: :any_skip_relocation, arm64_linux: "423f15a5c8d8a2dbaebba3ba07c76dbd1a1b7d4c02916e0c135f125e0dd269ea"
14-
sha256 cellar: :any_skip_relocation, x86_64_linux: "b9d7bfbe88f68506527e1f0794b3a4c5b5caca646e3e8ac61173c75cf439dce3"
9+
sha256 arm64_tahoe: "e42b2f4fbb23612b73a27fc169966b11ed5056ca1a05ff174ff19d54687f9429"
10+
sha256 arm64_sequoia: "e42b2f4fbb23612b73a27fc169966b11ed5056ca1a05ff174ff19d54687f9429"
11+
sha256 arm64_sonoma: "e42b2f4fbb23612b73a27fc169966b11ed5056ca1a05ff174ff19d54687f9429"
12+
sha256 cellar: :any_skip_relocation, sonoma: "f669169cb6cd49379802c055755cac1190b8909812dce9217efb02e4a170c8df"
13+
sha256 cellar: :any_skip_relocation, arm64_linux: "b57231a3a2990bfc55c6e53e7f7caffd0dea2615782cc4d0cd8fd33bd912162d"
14+
sha256 cellar: :any_skip_relocation, x86_64_linux: "b93a779de78e7f7d7830be3eebd151c335f6e1c41e54c92034fc32282b4bde78"
1515
end
1616

1717
depends_on "node"
1818

1919
def install
2020
system "npm", "install", *std_npm_args
2121
bin.install_symlink Dir["#{libexec}/bin/*"]
22+
23+
# Remove binaries for other architectures, `-musl`, `-baseline`, and `-baseline-musl`
24+
arch = Hardware::CPU.arm? ? "arm64" : "x64"
25+
os = OS.linux? ? "linux" : "darwin"
26+
(libexec/"lib/node_modules/opencode-ai/node_modules").children.each do |d|
27+
next unless d.directory?
28+
29+
rm_r d if d.basename.to_s != "opencode-#{os}-#{arch}"
30+
end
2231
end
2332

2433
test do

0 commit comments

Comments
 (0)