-
Create another GitHub repository:
- Name:
homebrew-cowboat(must start withhomebrew-) - Public repository
- Initialize with README
- Name:
-
Clone and set up the tap:
git clone https://github.com/YOURUSERNAME/homebrew-cowboat.git
cd homebrew-cowboat- Create the formula directory:
mkdir Formula- Move your formula:
# Copy the cowboat.rb file to Formula/cowboat.rb
cp /path/to/cowboat/cowboat.rb Formula/cowboat.rb-
Update the formula with correct URLs: Edit
Formula/cowboat.rbto point to your actual GitHub repository and get the real SHA256. -
Test your formula:
# Install from your tap
brew install YOURUSERNAME/cowboat/cowboat
# Or add tap first
brew tap YOURUSERNAME/cowboat
brew install cowboatWhen you release new versions:
-
Create a GitHub release:
- Tag:
v1.0.0 - Generate tarball URL
- Tag:
-
Get SHA256:
curl -L https://github.com/YOURUSERNAME/cowboat/archive/v1.0.0.tar.gz | shasum -a 256- Update formula:
- Change URL to point to release tarball
- Update SHA256 hash
- Update version number
Users can then install with:
# Method 1: Direct install
brew install YOURUSERNAME/cowboat/cowboat
# Method 2: Add tap then install
brew tap YOURUSERNAME/cowboat
brew install cowboatYour tap URL will be: https://github.com/YOURUSERNAME/homebrew-cowboat