Skip to content

Commit 93ea011

Browse files
authored
goreleaser: bump version & add nfmp support (#440)
1 parent 5592211 commit 93ea011

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

.goreleaser.yml

+18-4
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,26 @@ builds:
2929

3030
archives:
3131
- format: tar.gz
32+
name_template: >-
33+
{{ .Binary }}_{{ .Version }}_
34+
{{- if eq .Os "darwin" }}osx{{ else }}{{ .Os }}{{ end }}_
35+
{{- if eq .Arch "amd64" }}x86_64
36+
{{- else if eq .Arch "386" }}x86_32
37+
{{- else }}{{ .Arch }}{{ end }}
38+
{{- with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
3239
format_overrides:
3340
- goos: windows
3441
format: zip
35-
replacements:
36-
amd64: x86_64
37-
386: x86_32
38-
darwin: osx
3942
files:
4043
- LICENSE
44+
45+
nfpms:
46+
- vendor: FullStory
47+
homepage: https://github.com/fullstorydev/grpcurl/
48+
maintainer: Engineering at FullStory <fixme@fixme>
49+
description: 'Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers'
50+
license: MIT
51+
id: nfpms
52+
formats:
53+
- deb
54+
- rpm

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ install:
3131

3232
.PHONY: release
3333
release:
34-
@go install github.com/goreleaser/goreleaser@v1.10.0
35-
goreleaser release --rm-dist
34+
@go install github.com/goreleaser/goreleaser@v1.21.0
35+
goreleaser release --clean
3636

3737
.PHONY: docker
3838
docker:

0 commit comments

Comments
 (0)