From 3793d4fcd9b0df4bd8fd10b14d4b820f79aade46 Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Thu, 27 Aug 2026 01:02:59 -0700 Subject: [PATCH] Publish Homebrew as a cask instead of a formula. GoReleaser deprecated brews; casks need a flat archive so the binary is at the staged path root. Co-authored-by: Cursor --- .goreleaser.yaml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 3e8340a..1b345d3 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -68,7 +68,8 @@ notarize: archives: - formats: ['tar.gz'] - wrap_in_directory: true + # Flat so the Homebrew cask can find the binary without a rename. + wrap_in_directory: false files: - src: MANUAL.html dst: xt-manual.html @@ -114,10 +115,10 @@ nfpms: signs: - artifacts: all -brews: +homebrew_casks: - name: xt - # enable the line below only for testing locally - #skip_upload: true + binaries: + - xt repository: owner: golift name: homebrew-mugs @@ -126,14 +127,14 @@ brews: commit_author: name: goreleaserbot email: bot@goreleaser.com - commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" - directory: Formula + commit_msg_template: "Brew cask update for {{ .ProjectName }} version {{ .Tag }}" + directory: Casks homepage: https://unpackerr.com/ description: "eXtractor Tool - Recursively decompress archives" license: MIT - url_template: "https://github.com/Unpackerr/xt/releases/download/{{ .Tag }}/{{ .ArtifactName }}" - test: assert_match "xt v#{version}", shell_output("#{bin}/xt -v 2>&1", 0) - install: bin.install "xt" + url: + template: "https://github.com/Unpackerr/xt/releases/download/{{ .Tag }}/{{ .ArtifactName }}" + verified: github.com/Unpackerr/xt changelog: sort: asc