github.com/deroproject/derosuite@v2.1.6-1.0.20200307070847-0f2e589c7a2b+incompatible/build_all.sh (about) 1 #!/usr/bin/env bash 2 3 4 5 CURDIR=`/bin/pwd` 6 BASEDIR=$(dirname $0) 7 ABSPATH=$(readlink -f $0) 8 ABSDIR=$(dirname $ABSPATH) 9 10 cd $ABSDIR/../../../../ 11 GOPATH=`pwd` 12 13 version=`cat src/github.com/deroproject/derosuite/config/version.go | grep -i version |cut -d\" -f 2` 14 15 16 cd $CURDIR 17 bash $ABSDIR/build_package.sh "github.com/deroproject/derosuite/cmd/derod" 18 bash $ABSDIR/build_package.sh "github.com/deroproject/derosuite/cmd/explorer" 19 bash $ABSDIR/build_package.sh "github.com/deroproject/derosuite/cmd/dero-wallet-cli" 20 bash $ABSDIR/build_package.sh "github.com/deroproject/derosuite/cmd/dero-miner" 21 22 for d in build/*; do cp Start.md "$d"; done 23 cd "${ABSDIR}/build" 24 25 #windows users require zip files 26 #zip -r dero_windows_amd64_$version.zip dero_windows_amd64 27 zip -r dero_windows_amd64.zip dero_windows_amd64 28 zip -r dero_windows_x86.zip dero_windows_386 29 zip -r dero_windows_386.zip dero_windows_386 30 zip -r dero_windows_amd64_$version.zip dero_windows_amd64 31 zip -r dero_windows_x86_$version.zip dero_windows_386 32 zip -r dero_windows_386_$version.zip dero_windows_386 33 34 #all other platforms are okay with tar.gz 35 find . -mindepth 1 -type d -not -name '*windows*' -exec tar -cvzf {}.tar.gz {} \; 36 find . -mindepth 1 -type d -not -name '*windows*' -exec tar -cvzf {}_$version.tar.gz {} \; 37 38 cd $CURDIR