From eb9a7cdd007a89fe591e768755660bd8f115dfbd Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Mon, 22 Feb 2021 08:34:53 -0500 Subject: [PATCH] Improve linux binary generation --- contrib/devtools/gen-linux-binary-release.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/contrib/devtools/gen-linux-binary-release.sh b/contrib/devtools/gen-linux-binary-release.sh index 47bd650fc..07e7af868 100755 --- a/contrib/devtools/gen-linux-binary-release.sh +++ b/contrib/devtools/gen-linux-binary-release.sh @@ -2,15 +2,22 @@ # Copyright (c) 2016-2021 The Hush developers # Released under the GPLv3 +set -e +set -x + #TODO: autodect version number, error handling FILE="hush-3.6.2-linux-amd64.tar" +TIME=$(perl -e 'print time') +mv build build.$TIME mkdir build cp contrib/asmap/asmap.dat build/ cp sapling*.params build/ cd src cp komodod komodo-cli komodo-tx hushd hush-cli hush-tx hush-smart-chain ../build cd ../build +strip komodo* tar -f $FILE -c * -gzip $FILE - +gzip -9 $FILE +sha256sum *.gz +du -sh *.gz