Skip to content

Commit

Permalink
address deprecated archives.replacement
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Chase <jeremy.chase@gmail.com>
  • Loading branch information
jeremychase committed Mar 17, 2023
1 parent 6db3d5d commit 92c0c26
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,19 @@ builds:
- -s -w -X 'wxgate/cmd.Version={{ .Version }}'

archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of uname.
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 }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"cSpell.words": [
"goarch",
"goarm",
"guiyomh",
"illumos",
"incpatch",
"ldflags",
"mipsle",
"riscv",
"WXGATE"
]
}

0 comments on commit 92c0c26

Please sign in to comment.