checksum and compress

This commit is contained in:
techknowlogick
2023-03-18 01:58:21 -04:00
parent 4d868b7f3c
commit 9eb8b08a69
2 changed files with 29 additions and 6 deletions

12
.goreleaser.checksum.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
set -e
if [ -z "$1" ]; then
echo "usage: $0 <path>"
exit 1
fi
SUM=$(shasum -a 256 "$1" | cut -d' ' -f1)
BASENAME=$(basename "$1")
echo -n "${SUM} ${BASENAME}" > "$1".sha256