goreleaser: bump version & add nfmp support (#440)

This commit is contained in:
Albin Parou 2024-02-26 15:09:32 +01:00 committed by GitHub
parent 5592211a41
commit 93ea011b36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 6 deletions

View File

@ -29,12 +29,26 @@ builds:
archives:
- format: tar.gz
name_template: >-
{{ .Binary }}_{{ .Version }}_
{{- if eq .Os "darwin" }}osx{{ else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}x86_32
{{- else }}{{ .Arch }}{{ end }}
{{- with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
format_overrides:
- goos: windows
format: zip
replacements:
amd64: x86_64
386: x86_32
darwin: osx
files:
- LICENSE
nfpms:
- vendor: FullStory
homepage: https://github.com/fullstorydev/grpcurl/
maintainer: Engineering at FullStory <fixme@fixme>
description: 'Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers'
license: MIT
id: nfpms
formats:
- deb
- rpm

View File

@ -31,8 +31,8 @@ install:
.PHONY: release
release:
@go install github.com/goreleaser/goreleaser@v1.10.0
goreleaser release --rm-dist
@go install github.com/goreleaser/goreleaser@v1.21.0
goreleaser release --clean
.PHONY: docker
docker: