-
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.44 KB
/
opencode.rb
File metadata and controls
48 lines (41 loc) · 1.44 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.4.3"
depends_on "ripgrep"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/anomalyco/opencode/releases/download/v1.4.3/opencode-darwin-x64.zip"
sha256 "1431028e324dcdd2322e5aa710444a52c6de74d1a382f8082a4ad12fdae0768f"
def install
bin.install "opencode"
end
end
if Hardware::CPU.arm?
url "https://github.com/anomalyco/opencode/releases/download/v1.4.3/opencode-darwin-arm64.zip"
sha256 "d085c072087fa1cf076058ae28785a31a9368e0f3c42985ea8c558036fcb9b0c"
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.4.3/opencode-linux-x64.tar.gz"
sha256 "34d503ebb029853293be6fd4d441bbb2dbb03919bfa4525e88b1ca55d68f3e17"
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.4.3/opencode-linux-arm64.tar.gz"
sha256 "4cbf32f4c31da7dae14712b65aadbce6acfa1a7a85bee986a2ce4eaaed4eb5c8"
def install
bin.install "opencode"
end
end
end
end