individual checksums
This commit is contained in:
parent
d55f6646fb
commit
88538267db
10
.goreleaser.checksum.sh
Normal file
10
.goreleaser.checksum.sh
Normal 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
|
@ -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:
|
||||
-
|
||||
|
Loading…
Reference in New Issue
Block a user