Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boeschj/homebrew-tap
Easy distribution for packages via Homebrew
https://github.com/boeschj/homebrew-tap
Last synced: 8 days ago
JSON representation
Easy distribution for packages via Homebrew
- Host: GitHub
- URL: https://github.com/boeschj/homebrew-tap
- Owner: boeschj
- Created: 2024-11-11T21:31:58.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-14T14:25:26.000Z (3 months ago)
- Last Synced: 2024-12-04T20:43:27.911Z (2 months ago)
- Language: Ruby
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Boeschj Tap
This repository contains my Homebrew formulas for easy installation of my projects on macOS.
## How do I install these formulae?
`brew install boeschj/tap/`
Or `brew tap boeschj/tap` and then `brew install `.
Or, in a [`brew bundle`](https://github.com/Homebrew/homebrew-bundle) `Brewfile`:
```ruby
tap "boeschj/tap"
brew ""
```## Documentation
`brew help`, `man brew` or check [Homebrew's documentation](https://docs.brew.sh).
## Available Formulas
### ShellGPT
An AI-powered command line assistant.
```bash
brew install boeschj/tap/shellgpt
```## Updating Formulas for New Releases
When you release a new version of a project, follow these steps to update its formula:
1. Create and publish a new release on the project's repository
```bash
# In the project repository:
git tag v0.1.0 # Replace with new version
git push origin v0.1.0
```2. Get the SHA256 hash of the new macOS binary
```bash
# Download the release
curl -LO https://github.com/boeschj/shellgpt/releases/latest/download/shellgpt-mac-x86_64.tar.gz
# Get SHA256 hash
shasum -a 256 shellgpt-mac-x86_64.tar.gz
```3. Update the formula file (e.g., `Formula/shellgpt.rb`)
- Change the `VERSION = "x.x.x"` at the top of the file
- Update the `sha256` value with the new hash4. Commit and push the changes
```bash
git add Formula/.rb
git commit -m ": update to version x.x.x"
git push
```5. Users can now update to the new version with:
```bash
brew update
brew upgrade
```## Adding New Formulas
1. Create a new Ruby file in the `Formula` directory (e.g., `Formula/myproject.rb`)
2. Use this template:
```ruby
class Myproject < Formula
VERSION = "0.1.0".freeze
desc "Your project description"
homepage "https://github.com/boeschj/myproject"
version VERSIONon_macos do
url "https://github.com/boeschj/myproject/releases/download/v#{VERSION}/myproject-mac-x86_64.tar.gz"
sha256 "YOUR_MAC_BINARY_SHA256"
enddef install
bin.install "myproject"
# Add any additional files that need to be installed
endtest do
assert_match "MyProject", shell_output("#{bin}/myproject --help")
end
end
```3. Update this README to add the new formula to the "Available Formulas" section
## Testing Formulas Locally
Before pushing changes, you can test the formula locally:
```bash
brew uninstall myprojectbrew install --build-from-source Formula/myproject.rb
```