diff --git a/README.md b/README.md index 7697c85..28b2b4a 100644 --- a/README.md +++ b/README.md @@ -10,14 +10,14 @@ Head over to the releases page and grab the latest installers or binary. https:/ If you are on Debian/Ubuntu, please download the `.deb` package and install it. ``` -sudo dpkg -i linux-deb-zec-qt-wallet-v0.5.9.deb +sudo dpkg -i linux-deb-zec-qt-wallet-v0.5.10.deb sudo apt install -f ``` Or you can download and run the binaries directly. ``` -tar -xvf zec-qt-wallet-v0.5.9.tar.gz -./zec-qt-wallet-v0.5.9/zec-qt-wallet +tar -xvf zec-qt-wallet-v0.5.10.tar.gz +./zec-qt-wallet-v0.5.10/zec-qt-wallet ``` ### Windows diff --git a/src/scripts/dounifiedbuild.ps1 b/src/scripts/dounifiedbuild.ps1 index 86dcf5f..e35066f 100644 --- a/src/scripts/dounifiedbuild.ps1 +++ b/src/scripts/dounifiedbuild.ps1 @@ -61,7 +61,9 @@ ssh $winserver "New-Item zqwbuild -itemtype directory" | Out-Null # Same while copying the built msi. A straight scp pull from windows to here doesn't work, # so we ssh to windows, and then scp push the file to here. $myhostname = (hostname) | Out-String -NoNewline -Remove-Item -Path /tmp/zqwbuild -Recurse -ErrorAction Ignore | Out-Null +# Powershell seems not to be able to remove this directory for some reason! +# Remove-Item -Path /tmp/zqwbuild -Recurse -ErrorAction Ignore | Out-Null +bash "rm -rf /tmp/zqwbuild" 2>&1 | Out-Null New-Item -Path /tmp/zqwbuild -itemtype directory | Out-Null Copy-Item src /tmp/zqwbuild/ -Recurse Copy-Item res /tmp/zqwbuild/ -Recurse @@ -89,5 +91,5 @@ if (! (Test-Path ./artifacts/linux-binaries-zec-qt-wallet-v$version.tar.gz) -or Write-Host "[OK]" Write-Host -NoNewline "Signing Binaries......" -APP_VERSION=$version bash src/scripts/signbinaries.sh +bash src/scripts/signbinaries.sh --version $version Write-Host "[OK]" diff --git a/src/scripts/signbinaries.sh b/src/scripts/signbinaries.sh index 313bf97..52c1409 100755 --- a/src/scripts/signbinaries.sh +++ b/src/scripts/signbinaries.sh @@ -1,5 +1,25 @@ #!/bin/bash +# Accept the variables as command line arguments as well +POSITIONAL=() +while [[ $# -gt 0 ]] +do +key="$1" + +case $key in + -v|--version) + APP_VERSION="$2" + shift # past argument + shift # past value + ;; + *) # unknown option + POSITIONAL+=("$1") # save it in an array for later + shift # past argument + ;; +esac +done +set -- "${POSITIONAL[@]}" # restore positional parameters + if [ -z $APP_VERSION ]; then echo "APP_VERSION is not set"; exit 1; fi # Store the hash and signatures here @@ -10,13 +30,14 @@ cd artifacts echo "[Signing Binaries]" # sha256sum the binaries -gsha256sum *$APP_VERSION* > ../release/signatures/sha256sum-v$APP_VERSION.txt +gsha256sum *$APP_VERSION* > sha256sum-v$APP_VERSION.txt for i in $( ls *zec-qt-wallet-v$APP_VERSION* sha256sum-v$APP_VERSION* ); do echo "Signing" $i gpg --batch --output ../release/signatures/$i.sig --detach-sig $i done +mv sha256sum-v$APP_VERSION.txt ../release/signatures/ cp ../res/SIGNATURES_README ../release/signatures/README cd ../release/signatures diff --git a/src/version.h b/src/version.h index e6d4b6a..1a592b7 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -#define APP_VERSION "0.5.9" +#define APP_VERSION "0.5.10"