Skip to content

Commit

Permalink
Add homebrew formula for published testing binaries (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga authored Oct 4, 2024
1 parent 34d6cf7 commit 809ec99
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Formula/ollama-elastic.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
class OllamaElastic < Formula
desc ""
homepage ""
version "dbeaea4"

on_macos do
url "https://github.com/elastic/ollama/releases/download/dbeaea4/ollama-darwin"
sha256 "df241ff0b7f0f4ed3be36e2f9322848bd6b2a4dec205a84e0b104272a6393ffe"
def install
bin.install "ollama-darwin" => "ollama-elastic"
end
end

on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/elastic/ollama/releases/download/dbeaea4/ollama-linux-amd64.tgz"
sha256 "fa8429dccf0f484aab143e934cc3fa2ffb2d07519c62b380d3554d12ed5af6ec"

def install
bin.install "bin/ollama" => "ollama-elastic"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/elastic/ollama/releases/download/dbeaea4/ollama-linux-arm64.tgz"
sha256 "fc49eeeba27db672b1d56d91ccbe4f6ef853bc49162275d98f173e78ef1b1c48"

def install
bin.install "bin/ollama" => "ollama-elastic"
end
end
end
end
end

0 comments on commit 809ec99

Please sign in to comment.