Skip to content

Commit

Permalink
Add liana and version to shasums txt file
Browse files Browse the repository at this point in the history
  • Loading branch information
edouardparis committed Jan 7, 2025
1 parent d0fefc3 commit 39616be
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contrib/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion contrib/release/sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
)
}

Expand Down
8 changes: 8 additions & 0 deletions doc/TRY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!

Expand Down

0 comments on commit 39616be

Please sign in to comment.