diff --git a/src/scripts/make-binary-tarball.sh b/src/scripts/make-binary-tarball.sh old mode 100644 new mode 100755 index aef6cee..2abc584 --- a/src/scripts/make-binary-tarball.sh +++ b/src/scripts/make-binary-tarball.sh @@ -12,9 +12,15 @@ OS=$(uname) ARCH=$(uname -i) APP=SilentDragon-v$APP_VERSION-$OS-$ARCH DIR=$APP -echo -n "Making tarball for $APP..." -mkdir $DIR +echo "Making tarball for $APP..." +if [ -e $DIR ]; then + mv $DIR $DIR.$(perl -e 'print time') +fi +mkdir -p $DIR strip silentdragon +strip komodod +strip komodo-tx +strip komodo-cli cp silentdragon $DIR cp komodod $DIR @@ -27,6 +33,7 @@ cp README.md $DIR cp LICENSE $DIR # We make tarballs without params for people who already have them installed +echo "Creating $APP-noparams.tar.gz..." tar czf $APP-noparams.tar.gz $DIR/ cp sapling-output.params $DIR @@ -34,8 +41,9 @@ cp sapling-spend.params $DIR # By default we tell users to use the normal tarball with params, which will # be about 50MB larger but should cause less user support issues +echo "Creating $APP.tar.gz..." tar czf $APP.tar.gz $DIR/ - +echo "CHECKSUMS for $APP_VERSION" sha256sum $APP-noparams.tar.gz sha256sum $APP.tar.gz