Skip to content

Commit 625ce5e

Browse files
committed
feat: add brew tap support
1 parent ea4f161 commit 625ce5e

3 files changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ jobs:
163163
args: release --clean ${{ steps.version.outputs.IS_SNAPSHOT == 'true' && '--snapshot' || '' }} --timeout 30m
164164
env:
165165
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
166+
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
166167
GORELEASER_CURRENT_TAG: ${{ steps.version.outputs.CURRENT_TAG }}
167168
GORELEASER_PREVIOUS_TAG: ${{ steps.version.outputs.PREVIOUS_TAG }}
168169

.goreleaser.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,25 @@ changelog:
6262
- "^ci:"
6363
- Merge pull request
6464
- Merge branch
65+
66+
brews:
67+
- name: keylightd
68+
description: "Daemon and CLI tool for managing Elgato Key Lights on your local network"
69+
homepage: "https://github.com/jmylchreest/keylightd"
70+
license: "MIT"
71+
repository:
72+
owner: jmylchreest
73+
name: homebrew-keylightd
74+
branch: main
75+
commit_author:
76+
name: goreleaserbot
77+
email: bot@goreleaser.com
78+
install: |
79+
bin.install "keylightd"
80+
bin.install "keylightctl"
81+
test: |
82+
system "#{bin}/keylightd", "--version"
83+
system "#{bin}/keylightctl", "--version"
84+
skip_upload: "{{ .IsSnapshot }}"
85+
86+

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,24 @@ Configuration files are automatically generated on first save in `~/.config/keyl
4444

4545
## Installation Methods
4646

47+
### Homebrew (macOS/Linux)
48+
Install via Homebrew using our official tap:
49+
50+
```bash
51+
# Add the tap
52+
brew tap jmylchreest/keylightd
53+
54+
# Install keylightd
55+
brew install keylightd
56+
```
57+
58+
Or install directly:
59+
```bash
60+
brew install jmylchreest/keylightd/keylightd
61+
```
62+
63+
This installs both `keylightd` and `keylightctl` binaries.
64+
4765
### Flatpak
4866
Flatpak packages are automatically built for each release and are available from the [releases page](https://github.com/jmylchreest/keylightd/releases). Packages are built for both amd64 and arm64 architectures.
4967

0 commit comments

Comments
 (0)