From 6e801f5d4a66da4501f3f8b16a828960841042e2 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 21 Mar 2023 12:25:50 -0700 Subject: [PATCH] update goreleaser yaml with new settings --- .goreleaser.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index c33b6dd6..076994ed 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -28,12 +28,12 @@ builds: - -s -w -X github.com/minio/warp/pkg.ReleaseTag={{.Tag}} -X github.com/minio/warp/pkg.CommitID={{.FullCommit}} -X github.com/minio/warp/pkg.Version={{.Version}} -X github.com/minio/warp/pkg.ShortCommitID={{.ShortCommit}} -X github.com/minio/warp/pkg.ReleaseTime={{.Date}} archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - freebsd: FreeBSD - amd64: x86_64 + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} format_overrides: - goos: windows format: zip @@ -65,11 +65,12 @@ nfpms: # Basic file that applies to all packagers - src: systemd/warp.service dst: /etc/systemd/system/warp.service - replacements: - darwin: Darwin - linux: Linux - freebsd: FreeBSD - amd64: x86_64 + file_name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} dockers: - # GOOS of the built binary that should be used.