This repository was archived by the owner on Apr 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ if [[ "$(pwd)" != "${REPO_ROOT}" ]]; then
3030 exit 1
3131fi
3232
33- GO_BUILD_CMD=" go build -a -installsuffix cgo"
33+ GO_BUILD_CMD=' go build -a -installsuffix cgo'
3434GO_BUILD_LDFLAGS=" -s -w \
35- -X internal. version.commitHash= ${COMMIT_HASH} \
36- -X internal. version.buildDate= ${DATE} \
37- -X internal. version.version=${VERSION} "
35+ -X github.com/CoinMintTech/go-bittrex-cli/internal/ version.buildDate=' ${DATE} ' \
36+ -X github.com/CoinMintTech/go-bittrex-cli/internal/ version.commitHash=' ${COMMIT_HASH} ' \
37+ -X github.com/CoinMintTech/go-bittrex-cli/internal/ version.version=' ${VERSION} ' "
3838
3939if [[ -z " ${DEP_BUILD_PLATFORMS} " ]]; then
4040 DEP_BUILD_PLATFORMS=" linux windows darwin freebsd"
@@ -53,8 +53,12 @@ for OS in ${DEP_BUILD_PLATFORMS[@]}; do
5353 NAME=" ${NAME} .exe"
5454 fi
5555 echo " building for ${OS} /${ARCH} "
56- GOARCH=${ARCH} GOOS=${OS} CGO_ENABLED=0 ${GO_BUILD_CMD} -ldflags " ${GO_BUILD_LDFLAGS} " \
57- -o " ${REPO_ROOT} /release/${NAME} " .
58- shasum -a 256 " ${REPO_ROOT} /release/${NAME} " > " ${REPO_ROOT} /release/${NAME} " .sha256
56+ GOARCH=${ARCH} GOOS=${OS} CGO_ENABLED=0 ${GO_BUILD_CMD} \
57+ -ldflags " ${GO_BUILD_LDFLAGS} " \
58+ -o " ${REPO_ROOT} /release/${NAME} " .
59+ shasum \
60+ -a 256 \
61+ " ${REPO_ROOT} /release/${NAME} " \
62+ > " ${REPO_ROOT} /release/${NAME} " .sha256
5963 done
60- done
64+ done
You can’t perform that action at this time.
0 commit comments