From 28fb7abd8584842db0faaeaed22adf3ebd7af5d9 Mon Sep 17 00:00:00 2001 From: lianxiangcloud Date: Wed, 12 Jun 2019 19:34:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BC=96=E8=AF=91=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 3 ++- tendermint/ethermint/Makefile | 2 +- tendermint/tendermint/Makefile | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 127ea40..8ce49c9 100755 --- a/build.sh +++ b/build.sh @@ -8,6 +8,7 @@ tendermint=${ROOTDIR}/tendermint/tendermint pack=pack packfile=lk-chain +tarfile=lk-chain-linux-x64.tar.gz packdst=pack/$packfile if [ ! -e $BIN ]; then @@ -90,7 +91,7 @@ function do_pack() cp tools/genesis.json $packdst/data cp ethermint_init_satate/state.db_20190510.tar.gz $packdst/data/state.db.tar.gz - cd pack ; tar zcf $packfile.tar.gz $packfile ; echo "done $packdst.tar.gz"; + cd pack ; tar zcf $tarfile $packfile ; echo "done $tarfile"; } function main() diff --git a/tendermint/ethermint/Makefile b/tendermint/ethermint/Makefile index 3f42b48..36ee8a3 100644 --- a/tendermint/ethermint/Makefile +++ b/tendermint/ethermint/Makefile @@ -10,7 +10,7 @@ all: install test #install: get_vendor_deps install: - @go install \ + @GOOS=linux GOARCH=amd64 go install \ --ldflags "-X github.com/tendermint/ethermint/version.GitCommit=`git rev-parse HEAD`" \ ./cmd/ethermint diff --git a/tendermint/tendermint/Makefile b/tendermint/tendermint/Makefile index 2aed1ac..b807956 100644 --- a/tendermint/tendermint/Makefile +++ b/tendermint/tendermint/Makefile @@ -28,7 +28,7 @@ dist: @BUILD_TAGS='$(BUILD_TAGS)' sh -c "'$(CURDIR)/scripts/dist.sh'" install: - go install $(BUILD_FLAGS) ./cmd/tendermint + GOOS=linux GOARCH=amd64 go install $(BUILD_FLAGS) ./cmd/tendermint ########################################