-
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.48"
depends_on "ripgrep"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/anomalyco/opencode/releases/download/v1.14.48/opencode-darwin-x64.zip"
sha256 "912fd278baacaac93c710f36b8678f277bb89415a6086214aa5ff89d7917d97e"
def install
bin.install "opencode"
end
end
if Hardware::CPU.arm?
url "https://github.com/anomalyco/opencode/releases/download/v1.14.48/opencode-darwin-arm64.zip"
sha256 "517d3d873f624a63da2d4de1ea64cf3bdb8af260f9942814e78788a6d7962d24"
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.48/opencode-linux-x64.tar.gz"
sha256 "d06125de074af9c17be649137e2bef59b774c7668130b0086f9bd99ba67baf82"
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.48/opencode-linux-arm64.tar.gz"
sha256 "444179de5504ed3d68c55449e2af8ed2c92cd7d5f84ec1e8f306cac0fe49bd50"
def install
bin.install "opencode"
end
end
end
end