Skip to content

Commit

Permalink
Make sure to backup old releases correctly and strip binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed Jan 14, 2020
1 parent 14f4d57 commit bd77fc5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/scripts/make-binary-tarball.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -27,15 +33,17 @@ 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
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

0 comments on commit bd77fc5

Please sign in to comment.