-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheca.rb.tmpl
More file actions
29 lines (26 loc) · 1001 Bytes
/
eca.rb.tmpl
File metadata and controls
29 lines (26 loc) · 1001 Bytes
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
class Eca < Formula
desc "Editor Code Assistant (ECA) - AI pair programming capabilities agnostic of editor"
homepage "https://github.com/editor-code-assistant/eca"
version "<version>"
option "with-dynamic", "Installs the not static binary."
if OS.mac?
if Hardware::CPU.arm?
url "https://github.com/editor-code-assistant/eca/releases/download/<version>/eca-native-macos-aarch64.zip"
sha256 "<mac-arm-sha>"
else
url "https://github.com/editor-code-assistant/eca/releases/download/<version>/eca-native-macos-amd64.zip"
sha256 "<mac-amd-sha>"
end
elsif OS.linux?
if build.with? "dynamic"
url "https://github.com/editor-code-assistant/eca/releases/download/<version>/eca-native-linux-amd64.zip"
sha256 "<linux-sha>"
else
url "https://github.com/editor-code-assistant/eca/releases/download/<version>/eca-native-static-linux-amd64.zip"
sha256 "<static-linux-sha>"
end
end
def install
bin.install "eca"
end
end