class Sysg < Formula
desc "Agent-friendly general-purpose program orchestrator for busy people"
homepage "https://sysg.dev"
license "MIT"
on_macos do
on_arm do
url "https://github.com/ra0x3/systemg/releases/download/v__VERSION__/sysg-__VERSION__-aarch64-apple-darwin.tar.gz"
mirror "https://sh.sysg.dev/sysg-__VERSION__-aarch64-apple-darwin.tar.gz"
sha256 "__SHA256_DARWIN_ARM64__"
end
on_intel do
url "https://github.com/ra0x3/systemg/releases/download/v__VERSION__/sysg-__VERSION__-x86_64-apple-darwin.tar.gz"
mirror "https://sh.sysg.dev/sysg-__VERSION__-x86_64-apple-darwin.tar.gz"
sha256 "__SHA256_DARWIN_X86_64__"
end
end
on_linux do
on_arm do
url "https://github.com/ra0x3/systemg/releases/download/v__VERSION__/sysg-__VERSION__-aarch64-unknown-linux-gnu.tar.gz"
mirror "https://sh.sysg.dev/sysg-__VERSION__-aarch64-unknown-linux-gnu.tar.gz"
sha256 "__SHA256_LINUX_ARM64__"
end
on_intel do
url "https://github.com/ra0x3/systemg/releases/download/v__VERSION__/sysg-__VERSION__-x86_64-unknown-linux-gnu.tar.gz"
mirror "https://sh.sysg.dev/sysg-__VERSION__-x86_64-unknown-linux-gnu.tar.gz"
sha256 "__SHA256_LINUX_X86_64__"
end
end
def install
bin.install "sysg"
end
def caveats
<<~EOS
Homebrew replaces the binary on disk, but a supervisor that is already
resident keeps serving the build it booted from. Compare the two with:
sysg version
To adopt this build, stop the resident supervisor and start your projects
again. This stops every registered project:
sysg stop --supervisor
EOS
end
test do
assert_match version.to_s, shell_output("#{bin}/sysg --version")
end
end