You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1014 B
42 lines
1014 B
4 years ago
|
#!/bin/bash
|
||
|
# Copyright (c) 2020 The Hush developers
|
||
|
# Released under the GPLv3
|
||
|
|
||
|
APP_VERSION=$(cat src/version.h | cut -d\" -f2)
|
||
|
if [ -z $APP_VERSION ]; then echo "APP_VERSION is not set"; exit 1; fi
|
||
|
|
||
|
# This assumes we already have a staticly compiled SD
|
||
|
|
||
4 years ago
|
set -e
|
||
|
OS=$(uname)
|
||
|
ARCH=$(uname -i)
|
||
|
APP=SilentDragon-v$APP_VERSION-$OS-$ARCH
|
||
4 years ago
|
DIR=$APP
|
||
4 years ago
|
echo -n "Making tarball for $APP..."
|
||
4 years ago
|
mkdir $DIR
|
||
|
strip silentdragon
|
||
|
|
||
|
cp silentdragon $DIR
|
||
|
cp komodod $DIR
|
||
|
cp komodo-cli $DIR
|
||
|
cp komodo-tx $DIR
|
||
|
cp hushd $DIR
|
||
|
cp hush-cli $DIR
|
||
|
cp hush-tx $DIR
|
||
|
cp README.md $DIR
|
||
|
cp LICENSE $DIR
|
||
|
|
||
4 years ago
|
# We make tarballs without params for people who already have them installed
|
||
|
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
|
||
4 years ago
|
tar czf $APP.tar.gz $DIR/
|
||
4 years ago
|
|
||
|
|
||
|
sha256sum $APP-noparams.tar.gz
|
||
|
sha256sum $APP.tar.gz
|