Homebrew Formula Generator

Generate Homebrew formula for CLI distribution on macOS and Linux.

a5c-ai Updated 1.7k repo stars

File contents

Homebrew Formula Generator

Generate Homebrew formula for CLI distribution.

Generated Patterns

class Myapp < Formula
  desc "My CLI application"
  homepage "https://github.com/myuser/myapp"
  url "https://github.com/myuser/myapp/releases/download/v1.0.0/myapp-1.0.0.tar.gz"
  sha256 "abc123..."
  license "MIT"

  depends_on "node" => :build

  def install
    system "npm", "install", *std_npm_args
    bin.install_symlink Dir["#{libexec}/bin/*"]
  end

  test do
    assert_match "myapp v#{version}", shell_output("#{bin}/myapp --version")
  end
end

Target Processes

  • package-manager-publishing
  • cli-binary-distribution

a5c-ai/babysitter/tree/main/library/specializations/cli-mcp-development/skills/homebrew-formula-generator commit eda6156959

Frequently asked questions

npx skillmds@latest add a5c-ai/homebrew-formula-generator