From 3747f23a25ab14e5f46efaf1fcc344acbe7e5641 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Fri, 23 Jun 2017 09:24:08 +0200 Subject: [PATCH] Add basecli to packaging script --- scripts/dist_build.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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