diff --git a/scripts/dist_build.sh b/scripts/dist_build.sh index f1566c8997..4268a7633f 100755 --- a/scripts/dist_build.sh +++ b/scripts/dist_build.sh @@ -25,7 +25,7 @@ make tools make get_vendor_deps # Build! -echo "==> Building..." +echo "==> Building basecoin..." "$(which gox)" \ -os="${XC_OS}" \ -arch="${XC_ARCH}" \ @@ -35,6 +35,16 @@ echo "==> Building..." -tags="${BUILD_TAGS}" \ github.com/tendermint/basecoin/cmd/basecoin +echo "==> Building basecli..." +"$(which gox)" \ + -os="${XC_OS}" \ + -arch="${XC_ARCH}" \ + -osarch="!darwin/arm !solaris/amd64 !freebsd/amd64" \ + -ldflags "-X ${GIT_IMPORT}.GitCommit='${GIT_COMMIT}' -X ${GIT_IMPORT}.GitDescribe='${GIT_DESCRIBE}'" \ + -output "build/pkg/{{.OS}}_{{.Arch}}/basecli" \ + -tags="${BUILD_TAGS}" \ + github.com/tendermint/basecoin/cmd/basecli + # Zip all the files. echo "==> Packaging..." for PLATFORM in $(find ./build/pkg -mindepth 1 -maxdepth 1 -type d); do