From 471d589054cd639a328d07f85bfd3d4a51c11864 Mon Sep 17 00:00:00 2001 From: KalebHawkins Date: Mon, 24 Jun 2024 21:11:16 -0500 Subject: [PATCH] modify goreleaser.yaml --- .goreleaser.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a6c70b5..b15d35d 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -19,9 +19,11 @@ builds: - env: - CGO_ENABLED=0 goos: - - linux - windows - - darwin + targets: + - windows_amd64 + ldflags: + - -w -s archives: - format: tar.gz @@ -30,6 +32,9 @@ archives: {{ .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