-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathopencode.rb
More file actions
48 lines (41 loc) · 1.45 KB
/
opencode.rb
File metadata and controls
48 lines (41 loc) · 1.45 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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Opencode < Formula
desc "The AI coding agent built for the terminal."
homepage "https://github.com/anomalyco/opencode"
version "1.14.41"
depends_on "ripgrep"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/anomalyco/opencode/releases/download/v1.14.41/opencode-darwin-x64.zip"
sha256 "fe47e128ce720d69441f58b0d545fd96c50928317205622e7a87d961ee6d1dca"
def install
bin.install "opencode"
end
end
if Hardware::CPU.arm?
url "https://github.com/anomalyco/opencode/releases/download/v1.14.41/opencode-darwin-arm64.zip"
sha256 "79560a5a3f1cf96538b37ec78ae3f92326ca536a7bb5a2f6e8c1e7e9a2b6fed2"
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/anomalyco/opencode/releases/download/v1.14.41/opencode-linux-x64.tar.gz"
sha256 "d27d3c85183a7bd2df4506484a2f508d1897962063b7ccc8466705b493963dc5"
def install
bin.install "opencode"
end
end
if Hardware::CPU.arm? and Hardware::CPU.is_64_bit?
url "https://github.com/anomalyco/opencode/releases/download/v1.14.41/opencode-linux-arm64.tar.gz"
sha256 "2ffa63bb6115d7aa193cb1f6fa766eb79e1b399776871a624935a752e4461105"
def install
bin.install "opencode"
end
end
end
end