From b14f1fc4c00c4f6ce1cd4d949883f639f1b2787f Mon Sep 17 00:00:00 2001 From: jahway603 Date: Thu, 8 Jun 2023 01:03:24 -0400 Subject: [PATCH] created initial RELEASE script for devs --- util/RELEASE-new-version.sh | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 util/RELEASE-new-version.sh diff --git a/util/RELEASE-new-version.sh b/util/RELEASE-new-version.sh new file mode 100755 index 0000000..e40fb21 --- /dev/null +++ b/util/RELEASE-new-version.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash +# Copyright 2021-2023 Duke Leto and The Hush Developers +# Distributed under the GPLv3 software license, see the accompanying +# file LICENSE or https://www.gnu.org/licenses/gpl-3.0.en.html +# Purpose: To process a release for a new version of lightwalletd + +# *** Run with *** +# ./util/RELEASE-new-version.sh 0.1.3 +# *** the above 0.1.3 is the version number you're building *** + +VERSION=$1 +readonly VERSION +sed -i "s/0.1.3/$VERSION/g" util/build-debian-package.sh +sed -i "s/0.1.3/$VERSION/g" util/build-debian-package-SBC.sh +sed -i "s/0.1.3/$VERSION/g" common/common.go +sed -i "s/0.1.3/$VERSION/g" doc/man/lightwalletd.1 + +set -e + +echo "" +echo "Let's build new release $VERSION of lightwalletd..." +echo "" +echo "" +echo "Building x86 binary" +make build +echo "Building x86 Debian package" +./util/build-debian-package.sh +echo "lightwalletd $VERSION x86 is done... now to build ARM..." + +# TO-DO: automate ARM deb pkg build +#echo "" +#echo "Building ARM binary" +#make build-arm +#./util/build-debian-package-SBC.sh +#rm lightwalletd +# +echo "ALL DONE FOR lightwalletd $VERSION release"