Browse Source

Make sure to backup old releases correctly and strip binaries

pull/140/head v0.9.0
Duke Leto 4 years ago
parent
commit
bd77fc5d3a
  1. 14
      src/scripts/make-binary-tarball.sh

14
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

Loading…
Cancel
Save