From 27cb58e30e205fbc49ed6a714413546de430d0c8 Mon Sep 17 00:00:00 2001 From: Howar31 Date: Sat, 4 Jul 2026 16:31:56 +0800 Subject: [PATCH] fix(build): migrate deprecated brews config to homebrew_casks goreleaser check now fails on the deprecated brews property; casks are the supported path for pre-built binaries. The cask strips the macOS quarantine attribute post-install since release binaries are unsigned. Co-Authored-By: Claude Fable 5 --- .goreleaser.yaml | 21 +++++++++++++-------- README.md | 2 +- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 8b83171..c20d488 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -20,18 +20,23 @@ changelog: use: github-native release: prerelease: auto -brews: +homebrew_casks: - repository: owner: howar31 name: homebrew-tap token: "{{ .Env.HOMEBREW_TAP_TOKEN }}" - directory: Formula - # Do not push the formula on prereleases (tags containing "-"); - # otherwise goreleaser would overwrite the stable tap formula with the - # prerelease, since the npm-only guard in release.yml does not cover brews. + directory: Casks + # Do not push the cask on prereleases (tags containing "-"); + # otherwise goreleaser would overwrite the stable tap cask with the + # prerelease, since the npm-only guard in release.yml does not cover casks. skip_upload: "auto" description: Agent-facing Discord CLI for AI agents. - license: MIT homepage: https://github.com/howar31/dscrd - test: | - assert_match version.to_s, shell_output("#{bin}/dscrd --version") + # The release binaries are unsigned; strip the quarantine attribute so + # macOS Gatekeeper does not block the installed binary. + hooks: + post: + install: | + if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0 + system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/dscrd"] + end diff --git a/README.md b/README.md index d832671..8e42aaf 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ dscrd operates as a **Discord bot** — the only automation model Discord's Term # npm (downloads the platform binary, verifies SHA256) npm install -g @howar31/dscrd -# or Homebrew +# or Homebrew (macOS) brew install howar31/tap/dscrd # or Go