From 16fc0dcb51d18db84700cd18d7fc00a910e52cdf Mon Sep 17 00:00:00 2001 From: Tomas Tauber <2410580+tomtau@users.noreply.github.com> Date: Thu, 17 Dec 2020 11:44:09 +0800 Subject: [PATCH] Problem: goreleaser build fails for windows Solution: added -buildmode=exe flag --- .goreleaser.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 5b83444c1..89d15fecc 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -46,6 +46,7 @@ builds: - amd64 flags: - -tags=testnet,cgo,ledger,!test_ledger_mock,!ledger_mock,!ledger_zemu + - -buildmode=exe ldflags: - -s -w -X github.com/cosmos/cosmos-sdk/version.Name=crypto-com-chain -X github.com/cosmos/cosmos-sdk/version.ServerName=chain-maind -X github.com/cosmos/cosmos-sdk/version.ClientName=chain-maincli -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}