Skip to content

Commit d46182d

Browse files
rebeliceclaude
andcommitted
feat: add Homebrew tap support via GoReleaser
- Configure GoReleaser to auto-update homebrew-tap on release - Add version ldflags for --version support - Update README to remove "Coming soon" from Homebrew install 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 666d9ad commit d46182d

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.goreleaser.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ builds:
1616
goarch:
1717
- amd64
1818
- arm64
19+
ldflags:
20+
- -s -w -X main.version={{.Version}}
1921

2022
archives:
2123
- format: tar.gz
@@ -38,3 +40,17 @@ changelog:
3840
- '^docs:'
3941
- '^test:'
4042
- '^chore:'
43+
44+
brews:
45+
- repository:
46+
owner: rebelice
47+
name: homebrew-tap
48+
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
49+
directory: Formula
50+
homepage: "https://github.com/rebelice/lazypg"
51+
description: "A simple terminal UI for PostgreSQL"
52+
license: "MIT"
53+
test: |
54+
system "#{bin}/lazypg", "--version"
55+
install: |
56+
bin.install "lazypg"

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ Write and execute SQL directly. Results appear in tabs, so you can run multiple
8787
### Homebrew (macOS/Linux)
8888

8989
```bash
90-
# Coming soon
9190
brew install rebelice/tap/lazypg
9291
```
9392

0 commit comments

Comments
 (0)