individual checksums

This commit is contained in:
techknowlogick 2023-03-18 01:09:05 -04:00
parent d55f6646fb
commit 88538267db
2 changed files with 14 additions and 0 deletions

10
.goreleaser.checksum.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
set -e
if [ -z "$1" ]; then
echo "usage: $0 <path>"
exit 1
fi
shasum -a 256 "$1" | cut -d' ' -f1 > "$1".sha256

View File

@ -68,6 +68,10 @@ builds:
hooks:
post:
- cmd: tar -cJf {{ .Path }}.xz {{ .Path }}
env:
- XZ_OPT=-9
- cmd: .goreleaser.checksum.sh {{ .Path }}
- cmd: .goreleaser.checksum.sh {{ .Path }}.xz
blobs:
-