goreleaser: fix deprecation warnings
Philip Zeyliger
and
Claude
created 4 months ago
- Change archives.format to archives.formats (list)
- Replace deprecated brews with homebrew_casks
- Pin goreleaser version to "~> v2" instead of latest
- Update README for cask install command
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Change summary
.github/workflows/release.yml | 2 +-
.goreleaser.yml | 20 +++++++++++---------
README.md | 4 ++--
3 files changed, 14 insertions(+), 12 deletions(-)
Detailed changes
@@ -66,7 +66,7 @@ jobs:
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
- version: latest
+ version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -21,7 +21,8 @@ builds:
archives:
- id: shelley
- format: binary
+ formats:
+ - binary
name_template: >-
{{ .ProjectName }}_
{{- .Os }}_
@@ -49,16 +50,17 @@ release:
draft: false
prerelease: auto
-brews:
- - repository:
+homebrew_casks:
+ - name: shelley
+ binaries:
+ - shelley
+ repository:
owner: boldsoftware
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
- directory: Formula
+ directory: Casks
homepage: https://github.com/boldsoftware/shelley
description: "A mobile-friendly, web-based, multi-modal coding agent"
- license: Apache-2.0
- install: |
- bin.install "shelley"
- test: |
- system "#{bin}/shelley", "--help"
+ hooks:
+ post_install: |
+ system "xattr", "-dr", "com.apple.quarantine", "#{caskroom_path}"
@@ -25,10 +25,10 @@ curl -Lo shelley "https://github.com/boldsoftware/shelley/releases/latest/downlo
The binaries are on the [releases page](https://github.com/boldsoftware/shelley/releases/latest).
-## Homebrew (macOS/Linux)
+## Homebrew (macOS)
```bash
-brew install boldsoftware/tap/shelley
+brew install --cask boldsoftware/tap/shelley
```
## Build from Source