Skip to content

Commit

Permalink
ollamaplist: 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrered committed Jan 27, 2025
1 parent eaeab47 commit 92884c6
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions Formula/ollamaplist.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
class Ollamaplist < Formula
desc "给 Ollama CLI 添加环境变量"
homepage "https://github.com/Mrered/Gobin"
url "https://mirror.ghproxy.com/https://github.com/Mrered/Gobin/releases/download/v0.2.2/ollamaplist_0.2.2_darwin_arm64.tar.gz",
verified: "mirror.ghproxy.com/"
sha256 "9ffa61dfdc430d21c7e675205a3a73768f9a063065e8b8f9a55b3b3b71d24ebf"
version "0.2.2"
license "MIT"

mirror = "https://mirror.ghproxy.com/"
if OS.mac? && Hardware::CPU.arm?
url "#{mirror}https://github.com/Mrered/Gobin/releases/download/v#{version}/ollamaplist_#{version}_darwin_arm64.tar.gz",
verified: "mirror.ghproxy.com/"
sha256 "9ffa61dfdc430d21c7e675205a3a73768f9a063065e8b8f9a55b3b3b71d24ebf"
elsif OS.mac? && !Hardware::CPU.arm?
url "#{mirror}https://github.com/Mrered/Gobin/releases/download/v#{version}/ollamaplist_#{version}_darwin_amd64.tar.gz",
verified: "mirror.ghproxy.com/"
sha256 "d311991876899604b5000730e21f0c17c38d34fef4a5d2e6f00ade044250d008"
end

livecheck do
url :homepage
strategy :github_latest
end

on_macos do
on_intel do
url "https://mirror.ghproxy.com/https://github.com/Mrered/Gobin/releases/download/v0.2.2/ollamaplist_0.2.2_darwin_amd64.tar.gz",
verified: "mirror.ghproxy.com/"
sha256 "d311991876899604b5000730e21f0c17c38d34fef4a5d2e6f00ade044250d008"
end
end

def install
bin.install "ollamaplist"
end
Expand Down

0 comments on commit 92884c6

Please sign in to comment.