From 67b16468875a439de1d22d7c33f4e4a6dd287578 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 14 Jul 2024 00:39:23 -0400 Subject: [PATCH] upgrade goreleaser --- .goreleaser.yml | 10 ++++++---- Makefile | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index b60db1a..f1b0cf0 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,6 @@ # .goreleaser.yml # Build customization +version: 2 project_name: ircdog builds: - main: ircdog.go @@ -31,11 +32,12 @@ builds: archives: - - name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" + name_template: >- + {{ .ProjectName }}-{{ .Version }}- + {{- if eq .Os "darwin" }}macos{{- else }}{{ .Os }}{{ end -}}- + {{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end -}} + {{ if .Arm }}v{{ .Arm }}{{ end -}} format: tar.gz - replacements: - amd64: x86_64 - darwin: macos format_overrides: - goos: windows format: zip diff --git a/Makefile b/Makefile index 3b75d0a..e3df971 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ install: go install -v -ldflags "-X main.commit=$(GIT_COMMIT) -X main.version=$(GIT_TAG)" release: - goreleaser --skip-publish --clean + goreleaser --skip=publish --clean test: go test ./...