add Homebrew cask so BrewBar installs via brew

The repo doubles as a Homebrew tap: brew tap accepts an explicit git
URL, so Casks/brewbar.rb here is enough — no separate homebrew-* repo.
The cask downloads the zipped Release build from the matching Forgejo
release (v<version>) and verifies it against the pinned sha256. dist/
(local release artifacts) is gitignored.

Install:
  brew tap maxsoch/brewbar https://forgejo.socheleau.fr/maxsoch/BrewBar.git
  brew install --cask --no-quarantine maxsoch/brewbar/brewbar

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
maxsoch 2026-07-07 06:21:39 +02:00
parent ec33fbcf6c
commit 5c6b46ef7a
2 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
CLAUDE.local.md
.claude/settings.local.json
build/
dist/

18
Casks/brewbar.rb Normal file
View file

@ -0,0 +1,18 @@
cask "brewbar" do
version "1.0"
sha256 "c30d33c454190568fb1652320313537abf665dd3b7f1de9dd495e8d29f6d04f8"
url "https://forgejo.socheleau.fr/maxsoch/BrewBar/releases/download/v#{version}/BrewBar-#{version}.zip"
name "BrewBar"
desc "Menu bar app to monitor and upgrade Homebrew packages"
homepage "https://forgejo.socheleau.fr/maxsoch/BrewBar"
depends_on macos: ">= :sequoia"
app "BrewBar.app"
zap trash: [
"~/Library/Application Support/BrewBar",
"~/Library/Preferences/com.MaxSoch.BrewBar.plist",
]
end