aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/create-signed-manifest.sh
blob: fa0acd29e0585b8a48eb82a6fb3e3ec0323248d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"