From fb89c9f29ba4fb6cbec828dc14c9c96184d78f1b Mon Sep 17 00:00:00 2001 From: Gabe Alford Date: Tue, 23 Jul 2024 17:00:30 -0600 Subject: [PATCH] Update release config --- .goreleaser.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index b438248..75b9f01 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -20,7 +20,7 @@ builds: flags: - -trimpath ldflags: - - '-s -w -X github.com/crowdstrike/falcon-installer/internal/version.Version={{ replace .Version "v" "" }} -X github.com/crowdstrike/falcon-installer/internal/version.Commit={{.Commit}}' + - '-s -w -X github.com/crowdstrike/falcon-installer/internal/version.Version={{.Version}} -X github.com/crowdstrike/falcon-installer/internal/version.Commit={{.Commit}}' main: ./cmd/main.go goos: - linux @@ -40,8 +40,9 @@ archives: - format: tar.gz # this name template makes the OS and Arch compatible with the results of `uname`. name_template: >- - {{ .ProjectName }}_ - {{- .Os }}_ + {{ .ProjectName }}- + {{ .Version }}- + {{- .Os }}- {{- if eq .Arch "amd64" }}x86_64 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end }}