From c31e7cf70b6f5978faa6783f87a104ca89f1de1f Mon Sep 17 00:00:00 2001 From: Matheus Moraes Date: Sun, 5 Mar 2023 01:29:12 -0300 Subject: [PATCH] update .goreleaser.yml --- .goreleaser.yml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 228f884..c8f8e55 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -8,13 +8,24 @@ builds: - linux - windows - darwin + ldflags: + - >- + -s -w + -X github.com/matheusfm/futbin/cmd.version={{.Version}} + -X github.com/matheusfm/futbin/cmd.commit={{.Commit}} + -X github.com/matheusfm/futbin/cmd.date={{.Date}} archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - format: tar.gz + 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 }} + format_overrides: + - goos: windows + format: zip checksum: name_template: 'checksums.txt' snapshot: