Hush Full Node software. We were censored from Github, this is where all development happens now.
https://hush.is
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.
30 lines
705 B
30 lines
705 B
#!/usr/bin/env bash
|
|
# Copyright (c) 2016-2022 The Hush developers
|
|
# Released under the GPLv3
|
|
|
|
set -e
|
|
set -x
|
|
|
|
#hardcode and uncomment if hushd is not running on this machine
|
|
#VERSION=3.6.3
|
|
VERSION=$(./src/hushd --version|grep version|cut -d' ' -f4|cut -d- -f1|sed 's/v//g')
|
|
FILE="hush-$VERSION-linux-amd64.tar"
|
|
TIME=$(perl -e 'print time')
|
|
|
|
if [ -d "build" ]
|
|
then
|
|
mv build build.$TIME
|
|
echo "Moved existing build/ dir to build.$TIME"
|
|
fi
|
|
mkdir build
|
|
echo "Created new build/ dir"
|
|
cp contrib/asmap/asmap.dat build/
|
|
cp sapling*.params build/
|
|
cd src
|
|
cp hushd hush-cli hush-tx hush-smart-chain ../build
|
|
cd ../build
|
|
strip hushd hush-cli hush-tx
|
|
tar -f $FILE -c *
|
|
gzip -9 $FILE
|
|
sha256sum *.gz
|
|
du -sh *.gz
|
|
|