chore: chain rename + bump to v0.16.0 (mirror URLs, fix auto-update)
Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
425d4166af
commit
2d8e9f4048
2 changed files with 30 additions and 32 deletions
|
|
@ -1,10 +1,10 @@
|
|||
# Homebrew formula skeleton for the F∆I Platform CLI.
|
||||
# Homebrew formula skeleton for the Ch∆In CLI.
|
||||
#
|
||||
# Lives in this repo as the canonical source — the actual
|
||||
# distribution is a checkout of `fai/homebrew-tap` (a separate
|
||||
# Forgejo repo, seeded by
|
||||
# `scripts/bootstrap-distribution-repos.sh`) that carries a copy
|
||||
# of this file at `Formula/fai.rb`. The tap repo's
|
||||
# of this file at `Formula/chain.rb`. The tap repo's
|
||||
# `.forgejo/workflows/update.yml` (sourced from
|
||||
# `installer/homebrew/forgejo-workflow-update.yml` in this repo)
|
||||
# auto-bumps the version + sha256 entries against each new
|
||||
|
|
@ -13,23 +13,23 @@
|
|||
# To install a release from the tap:
|
||||
#
|
||||
# brew tap fai/tap https://git.flemming.ai/fai/homebrew-tap
|
||||
# brew install fai
|
||||
# brew install chain
|
||||
#
|
||||
# To install from this checkout for testing:
|
||||
#
|
||||
# brew install --build-from-source ./installer/homebrew/fai.rb
|
||||
# brew install --build-from-source ./installer/homebrew/chain.rb
|
||||
#
|
||||
# This file is a *skeleton*. The :url / :sha256 placeholders are
|
||||
# populated by the release pipeline once macOS builds land on the
|
||||
# Forgejo Release page. The class name (`Fai`) is what Homebrew
|
||||
# uses to address the formula; lowercase `fai` is the binary on
|
||||
# Forgejo Release page. The class name (`Chain`) is what Homebrew
|
||||
# uses to address the formula; lowercase `chain` is the binary on
|
||||
# disk after install.
|
||||
|
||||
class Fai < Formula
|
||||
class Chain < Formula
|
||||
desc "Deterministic workflow engine for AI-assisted data " \
|
||||
"processing in regulated environments"
|
||||
homepage "https://flemming.ai"
|
||||
version "0.12.3"
|
||||
version "0.16.0"
|
||||
license "Apache-2.0"
|
||||
|
||||
# Platform-specific binary URLs + sha256 are filled in per
|
||||
|
|
@ -37,35 +37,33 @@ class Fai < Formula
|
|||
# same release; the formula consumes them on Apple Silicon and
|
||||
# Intel macs via stanza selectors.
|
||||
if Hardware::CPU.arm?
|
||||
url "https://git.flemming.ai/fai/platform/releases/download/" \
|
||||
"v#{version}/fai-macos-aarch64"
|
||||
sha256 "7a43bebe1c011804f0fdf9ffe5ae36b4356128822a0c105d7c7da294912e5d31"
|
||||
url "https://releases.chain.flemming.ai/v#{version}/chain-macos-aarch64"
|
||||
sha256 "4995c355e79e6afeda34f04e2216c5736d9f088c0392122cd3d6a08f7d1eabf7"
|
||||
else
|
||||
url "https://git.flemming.ai/fai/platform/releases/download/" \
|
||||
"v#{version}/fai-macos-x86_64"
|
||||
sha256 "10535025b7ded094ca44a1189f530d016812dc40d6d7139c333ddf451c4ccc12"
|
||||
url "https://releases.chain.flemming.ai/v#{version}/chain-macos-x86_64"
|
||||
sha256 "f50cae5477105e2734fb9c92b7d1889fbbb4e848297fa41ec72638b3c63f5916"
|
||||
end
|
||||
|
||||
# Plain binary — no source build needed. We rely on the upstream
|
||||
# CI to have produced + signed it. Notarization is a separate
|
||||
# follow-up.
|
||||
def install
|
||||
bin.install Dir["*"].first => "fai"
|
||||
bin.install Dir["*"].first => "chain"
|
||||
end
|
||||
|
||||
# `brew test fai` runs this — keeps the formula honest. We don't
|
||||
# `brew test chain` runs this — keeps the formula honest. We don't
|
||||
# start the daemon; we only verify the binary is callable.
|
||||
test do
|
||||
assert_match version.to_s, shell_output("#{bin}/fai --version")
|
||||
assert_match version.to_s, shell_output("#{bin}/chain --version")
|
||||
end
|
||||
|
||||
def caveats
|
||||
<<~EOS
|
||||
The F∆I daemon is not started automatically. After install:
|
||||
The Ch∆In daemon is not started automatically. After install:
|
||||
|
||||
fai bootstrap # writes ~/.fai/ layout + PATH marker
|
||||
fai daemon start # starts the local hub
|
||||
fai install debug.echo # smoke-test the install path
|
||||
chain bootstrap # writes ~/.chain/ layout + PATH marker
|
||||
chain daemon start # starts the local hub
|
||||
chain install debug.echo # smoke-test the install path
|
||||
|
||||
For Studio, install separately from
|
||||
https://flemming.ai/get.
|
||||
Loading…
Add table
Add a link
Reference in a new issue