brew create formula


Steps

  1. Do a brew create https://host/path/to/dist.tgz. This will open $EDITOR with the brew template-generated your-app.rb formula.
  2. Edit the formula as per your need.
  3. Audit the formula using brew audit your-app.
  4. Try installing your modified formula by HOMEBREW_MAKE_JOBS=1 brew install -v your-app.

Guidelines for language specific formulas

  1. Java uber jar.
  2. Golang.
  3. NodesJS.

Casks

  1. Tutorial.
  2. Commit your cask formula into Casks/ folder in your tap repo.

Command to test your cask

To get recommended name for your cask:

"$(brew --repository)/Library/Taps/Homebrew/homebrew-cask/developer/bin/generate_cask_token" '/full/path/to/new/software.app'

To create the cask:

brew cask create <cask-name>

To audit:

brew cask audit <cask-name>

To install:

HOMEBREW_NO_AUTO_UPDATE=1 brew cask install <cask-name>
Posted on Sat Dec 15 12:58:12 EST 2018 by Subhash Chandran
brew mac