aboutsummaryrefslogtreecommitdiffstats
path: root/utils/create-signed-manifest.sh
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2024-06-28 14:53:43 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2024-06-28 14:53:43 +0100
commitef34f0bb4798a0d1410fffc974f084e4c6cfb920 (patch)
tree927965d3de187e2af5d594e6018b635a416ef6fb /utils/create-signed-manifest.sh
downloadviewercount-ef34f0bb4798a0d1410fffc974f084e4c6cfb920.tar.gz
viewercount-ef34f0bb4798a0d1410fffc974f084e4c6cfb920.tar.bz2
viewercount-ef34f0bb4798a0d1410fffc974f084e4c6cfb920.zip
Initial commit
Diffstat (limited to 'utils/create-signed-manifest.sh')
-rwxr-xr-xutils/create-signed-manifest.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/utils/create-signed-manifest.sh b/utils/create-signed-manifest.sh
new file mode 100755
index 0000000..2df1d93
--- /dev/null
+++ b/utils/create-signed-manifest.sh
@@ -0,0 +1,27 @@
+#|/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/viewercount/releases/download/$tag/viewercount-$tag-darwin-x86_64.tar.gz"
+wget "https://github.com/sommerfelddev/viewercount/releases/download/$tag/viewercount-$tag-linux-x86_64.tar.gz"
+wget "https://github.com/sommerfelddev/viewercount/releases/download/$tag/viewercount-$tag-linux-aarch64.tar.gz"
+wget "https://github.com/sommerfelddev/viewercount/releases/download/$tag/viewercount-$tag-windows-x86_64.zip"
+
+sha256sum -b -- * > viewercount-"$tag"-manifest.txt
+
+sha256sum --check viewercount-"$tag"-manifest.txt
+
+gpg -b --armor viewercount-"$tag"-manifest.txt
+
+gpg --verify viewercount-"$tag"-manifest.txt.asc
+
+pwd
+
+cd "$cwd"