From aebdfa93d1ce33aed353f4ec5219bb13a913800a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Alberto=20D=C3=ADaz=20Orozco?= Date: Wed, 2 Oct 2024 15:21:43 +0200 Subject: [PATCH 1/2] Update goreleaser manifest to make it compatible with v2 --- .goreleaser.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index a2ad270f..074239c0 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 2 env: - GO111MODULE=on - CGO_ENABLED=0 @@ -18,22 +19,26 @@ builds: goarch: - amd64 - arm64 - - 386 + - "386" - arm - ppc64le goarm: - - 6 - - 7 + - "6" + - "7" archives: - format_overrides: - goos: windows format: zip - replacements: - windows: Windows - darwin: Darwin - 386: i386 - amd64: x86_64 + name_template: >- + {{- .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end -}} + files: + - duf.1.gz nfpms: - builds: @@ -51,7 +56,7 @@ nfpms: brews: - goarm: 6 - tap: + repository: owner: muesli name: homebrew-tap commit_author: From 87e0d381e1f6bd2e12913f4842511631b2968699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Alberto=20D=C3=ADaz=20Orozco?= Date: Wed, 2 Oct 2024 15:22:28 +0200 Subject: [PATCH 2/2] Add manpage installation on brew --- .goreleaser.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 074239c0..0665db38 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -5,6 +5,7 @@ env: before: hooks: - go mod tidy + - gzip duf.1 builds: - binary: duf flags: @@ -64,6 +65,9 @@ brews: email: "muesli@gmail.com" homepage: "https://fribbledom.com/" description: "Disk Usage/Free Utility" + install: | + bin.install "duf" + man1.install "duf.1.gz" # skip_upload: true signs: