Skip to content

Commit 8e763e7

Browse files
Fix .goreleaser.yml
1 parent 5a49bdd commit 8e763e7

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.goreleaser.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,40 @@ builds:
88
-
99
env:
1010
- GO111MODULE=on
11+
- CGO_ENABLED=0
1112
goos:
1213
- linux
1314
- darwin
1415
- windows
1516
- freebsd
1617
goarch:
1718
- amd64
18-
- arm
1919
- arm64
20+
- riscv64
2021
main: ./
2122
flags:
2223
- -trimpath
2324
ldflags: -s -w -X github.com/goark/gpgpdump/facade.Version=v{{ .Version }}
2425
binary: gpgpdump
2526

27+
source:
28+
rlcp: true
2629
archives:
2730
-
2831
format: tar.gz
2932
format_overrides:
3033
- goos: windows
3134
format: zip
32-
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
33-
replacements:
34-
amd64: 64bit
35-
386: 32bit
36-
arm: ARM
37-
arm64: ARM64
38-
darwin: macOS
39-
linux: Linux
40-
windows: Windows
41-
freebsd: FreeBSD
35+
name_template: >-
36+
{{ .Binary }}_
37+
{{- .Version }}_
38+
{{- if eq .Os "freebsd" }}FreeBSD
39+
{{- else }}{{ title .Os }}{{ end }}_
40+
{{- if eq .Arch "amd64" }}64bit
41+
{{- else if eq .Arch "386" }}32bit
42+
{{- else if eq .Arch "arm64" }}ARM64
43+
{{- else if eq .Arch "riscv64" }}RISCV
44+
{{- else }}{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ end }}
4245
files:
4346
- LICENSE*
4447
- README*

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tasks:
1111
build-all:
1212
desc: Build executable binary with GoReleaser.
1313
cmds:
14-
- goreleaser --snapshot --skip-publish --clean
14+
- goreleaser --snapshot --skip=publish --clean
1515

1616
test:
1717
desc: Test and lint.

0 commit comments

Comments
 (0)