diff options
author | sommerfeld <sommerfeld@sommerfeld.dev> | 2024-04-24 15:48:45 +0100 |
---|---|---|
committer | sommerfeld <sommerfeld@sommerfeld.dev> | 2024-04-24 15:57:30 +0100 |
commit | 194c89a2f7eac835599c9829b3d6f828e2051733 (patch) | |
tree | 0bc83eb333946a7b06c6c90009fb70402d107bcc /utils | |
parent | 9afec3d3eae58d26a932eb390d0c40b7c6793c9e (diff) | |
download | sentrum-194c89a2f7eac835599c9829b3d6f828e2051733.tar.gz sentrum-194c89a2f7eac835599c9829b3d6f828e2051733.tar.bz2 sentrum-194c89a2f7eac835599c9829b3d6f828e2051733.zip |
Add script to create and sign release manifests
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/create-signed-manifest.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/utils/create-signed-manifest.sh b/utils/create-signed-manifest.sh new file mode 100755 index 0000000..fa0acd2 --- /dev/null +++ b/utils/create-signed-manifest.sh @@ -0,0 +1,26 @@ +#|/usr/bin/env sh + +set -e + +script_dir=$(dirname -- "$(readlink -f "$0")") + +tag=$(git -C "$script_dir" describe --tags --abbrev=0) + +cwd=$(pwd) +cd "$(mktemp -d)" + +wget "https://github.com/sommerfelddev/sentrum/releases/download/$tag/sentrum-$tag-darwin-x86_64.tar.gz" +wget "https://github.com/sommerfelddev/sentrum/releases/download/$tag/sentrum-$tag-linux-x86_64.tar.gz" +wget "https://github.com/sommerfelddev/sentrum/releases/download/$tag/sentrum-$tag-windows-x86_64.zip" + +sha256sum -b -- * > sentrum-"$tag"-manifest.txt + +sha256sum --check sentrum-"$tag"-manifest.txt + +gpg -b --armor sentrum-"$tag"-manifest.txt + +gpg --verify sentrum-"$tag"-manifest.txt.asc + +pwd + +cd "$cwd" |