diff --git a/contrib/release/release.sh b/contrib/release/release.sh index 1dc4c374f..0420287ff 100755 --- a/contrib/release/release.sh +++ b/contrib/release/release.sh @@ -94,6 +94,6 @@ NIX_BUILD_DIR="$(nix path-info .#release)" mv "Liana-$VERSION-noncodesigned.zip" "$RELEASE_DIR/" ) -find "$RELEASE_DIR" -type f ! -name "shasums.txt" -exec sha256sum {} + | tee "$RELEASE_DIR/shasums.txt" +find "$RELEASE_DIR" -type f ! -name "$LIANA_PREFIX-shasums.txt" -exec sha256sum {} + | tee "$RELEASE_DIR/$LIANA_PREFIX-shasums.txt" set +ex diff --git a/contrib/release/sign.sh b/contrib/release/sign.sh index 362a4e61c..3ef2e382d 100755 --- a/contrib/release/sign.sh +++ b/contrib/release/sign.sh @@ -4,6 +4,7 @@ set -e # Exit immediately if a command exits with a non-zero status set -x # Print commands and their arguments as they are executed VERSION="${VERSION:-"9.0"}" +LIANA_PREFIX="liana-$VERSION" # Define the release directory RELEASE_DIR="$PWD/release_assets" RELEASE_BUILD_DIR="$PWD/release_build" @@ -12,7 +13,7 @@ RELEASE_BUILD_DIR="$PWD/release_build" sign_with_gpg() { ( cd "$RELEASE_DIR" - gpg --detach-sign --armor "shasums.txt" + gpg --detach-sign --armor "$LIANA_PREFIX-shasums.txt" ) } diff --git a/doc/TRY.md b/doc/TRY.md index cf6f36be8..dc2f43fc2 100644 --- a/doc/TRY.md +++ b/doc/TRY.md @@ -98,6 +98,14 @@ Example for Linux (replace the signature name with the one corresponding to your gpg --keyserver hkps://keys.openpgp.org --refresh-keys 5B63F3B97699C7EEF3B040B19B7F629A53E77B83 ``` +if Liana version is superior or equal to v9: + +``` +gpg --keyserver hkps://keys.openpgp.org --receive 5B63F3B97699C7EEF3B040B19B7F629A53E77B83 +sha256sum --check liana-9.0-shasums.txt +gpg --verify liana-9.0-shasums.txt.asc +``` + If all is good, you can run Liana!