-
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.15.10"
depends_on "ripgrep"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/anomalyco/opencode/releases/download/v1.15.10/opencode-darwin-x64.zip"
sha256 "ef14f611d0c3e68d9488fd0573b3bc2185dfd4ccb27755f8389018dba3f79539"
def install
bin.install "opencode"
end
end
if Hardware::CPU.arm?
url "https://github.com/anomalyco/opencode/releases/download/v1.15.10/opencode-darwin-arm64.zip"
sha256 "b9074b933e0db458243f7ba20d8c3bf6a85e679b400c62df0eafd3abadd725ed"
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.15.10/opencode-linux-x64.tar.gz"
sha256 "a4c0c94a7fdbf637e3ae479c046ca49e925370b4cee503dfba7ab677a13cd0c5"
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.15.10/opencode-linux-arm64.tar.gz"
sha256 "def583a68cb155cddd9523e52139a5b915e981eef17a274c8c8171a3ee828ae2"
def install
bin.install "opencode"
end
end
end
end