-
Notifications
You must be signed in to change notification settings - Fork 4
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.2.17"
depends_on "ripgrep"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/anomalyco/opencode/releases/download/v1.2.17/opencode-darwin-x64.zip"
sha256 "3216fa7ed9ec9e84f98dbde5166b8e013daf7d1b9676d05fcdc36fdb8f3f92e3"
def install
bin.install "opencode"
end
end
if Hardware::CPU.arm?
url "https://github.com/anomalyco/opencode/releases/download/v1.2.17/opencode-darwin-arm64.zip"
sha256 "7d56a7b0f85b7d71047bdb3586593b1184a848d0b5467c3cf5893be0097db7f1"
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.2.17/opencode-linux-x64.tar.gz"
sha256 "dbfe556df45ac999eff95248269ccdd06ee2052983bb03b9501fe9dda2d1f695"
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.2.17/opencode-linux-arm64.tar.gz"
sha256 "a8c8958274c9b6d9939253b7779a8628c03ec34abbf874cfd5021dd1add12f83"
def install
bin.install "opencode"
end
end
end
end