Skip to content

Commit 809ec99

Browse files
authored
Add homebrew formula for published testing binaries (#4)
1 parent 34d6cf7 commit 809ec99

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

Formula/ollama-elastic.rb

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
class OllamaElastic < Formula
2+
desc ""
3+
homepage ""
4+
version "dbeaea4"
5+
6+
on_macos do
7+
url "https://github.com/elastic/ollama/releases/download/dbeaea4/ollama-darwin"
8+
sha256 "df241ff0b7f0f4ed3be36e2f9322848bd6b2a4dec205a84e0b104272a6393ffe"
9+
def install
10+
bin.install "ollama-darwin" => "ollama-elastic"
11+
end
12+
end
13+
14+
on_linux do
15+
on_intel do
16+
if Hardware::CPU.is_64_bit?
17+
url "https://github.com/elastic/ollama/releases/download/dbeaea4/ollama-linux-amd64.tgz"
18+
sha256 "fa8429dccf0f484aab143e934cc3fa2ffb2d07519c62b380d3554d12ed5af6ec"
19+
20+
def install
21+
bin.install "bin/ollama" => "ollama-elastic"
22+
end
23+
end
24+
end
25+
on_arm do
26+
if Hardware::CPU.is_64_bit?
27+
url "https://github.com/elastic/ollama/releases/download/dbeaea4/ollama-linux-arm64.tgz"
28+
sha256 "fc49eeeba27db672b1d56d91ccbe4f6ef853bc49162275d98f173e78ef1b1c48"
29+
30+
def install
31+
bin.install "bin/ollama" => "ollama-elastic"
32+
end
33+
end
34+
end
35+
end
36+
end

0 commit comments

Comments
 (0)