Files
openhuman/packages/homebrew/openhuman.rb
T
YellowSnnowmannandGitHub 6406ec2bc3 Feat:package manager channels (brew, apt, npm ) (#166)
* feat(release): upload versioned CLI tarballs in release workflow (#128)

Package and upload non-Windows CLI tarballs with SHA-256 checksum companions during release builds so package managers can consume stable release artifacts.

Made-with: Cursor

* feat(packaging): add brew apt npm release channels automation (#128)

Add post-release workflow and channel assets to publish Homebrew formula updates, signed apt repository metadata, and npm package releases with smoke validation.

Made-with: Cursor

* docs: add installation guide for OpenHuman across various package managers
2026-04-01 19:30:55 +05:30

40 lines
1.3 KiB
Ruby

# Homebrew formula template — rendered by CI, committed to tinyhumansai/homebrew-openhuman.
# Placeholders replaced by .github/workflows/release-packages.yml before commit.
class Openhuman < Formula
desc "AI-powered assistant for communities — OpenHuman CLI"
homepage "https://github.com/tinyhumansai/openhuman"
version "@VERSION@"
license "MIT"
on_macos do
on_arm do
url "https://github.com/tinyhumansai/openhuman/releases/download/v@VERSION@/openhuman-core-@VERSION@-aarch64-apple-darwin.tar.gz"
sha256 "@SHA256_MACOS_ARM64@"
end
on_intel do
url "https://github.com/tinyhumansai/openhuman/releases/download/v@VERSION@/openhuman-core-@VERSION@-x86_64-apple-darwin.tar.gz"
sha256 "@SHA256_MACOS_X64@"
end
end
on_linux do
on_arm do
# ARM64 (aarch64)
url "https://github.com/tinyhumansai/openhuman/releases/download/v@VERSION@/openhuman-core-@VERSION@-aarch64-unknown-linux-gnu.tar.gz"
sha256 "@SHA256_LINUX_ARM64@"
end
on_intel do
url "https://github.com/tinyhumansai/openhuman/releases/download/v@VERSION@/openhuman-core-@VERSION@-x86_64-unknown-linux-gnu.tar.gz"
sha256 "@SHA256_LINUX_X64@"
end
end
def install
bin.install "openhuman-core" => "openhuman"
end
test do
system "#{bin}/openhuman", "--version"
end
end