From 39616bea421182f10a4a9f6aa2701f665817e5d3 Mon Sep 17 00:00:00 2001 From: edouardparis Date: Tue, 7 Jan 2025 11:02:21 +0100 Subject: [PATCH] Add liana and version to shasums txt file --- contrib/release/release.sh | 2 +- contrib/release/sign.sh | 3 ++- doc/TRY.md | 8 ++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/contrib/release/release.sh b/contrib/release/release.sh index 1dc4c374..0420287f 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 362a4e61..3ef2e382 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 cf6f36be..dc2f43fc 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!