From 92c0c2686ad7d5f6c27f2307907e4e2a73110a56 Mon Sep 17 00:00:00 2001 From: Jeremy Chase Date: Fri, 17 Mar 2023 17:11:14 +0000 Subject: [PATCH] address deprecated archives.replacement Signed-off-by: Jeremy Chase --- .goreleaser.yaml | 19 +++++++++++++------ .vscode/settings.json | 7 +++++++ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ca0550e..1477bc7 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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: diff --git a/.vscode/settings.json b/.vscode/settings.json index bef7d01..123b5ef 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,13 @@ { "cSpell.words": [ + "goarch", + "goarm", "guiyomh", + "illumos", + "incpatch", + "ldflags", + "mipsle", + "riscv", "WXGATE" ] } \ No newline at end of file