only publish sha256, skip md5+sha1+sha512 (#625)

* only publish sha512, skip md5+sha1+sha256
* Keep sha256 signature instead of sha512 for homebrew
Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
This commit is contained in:
Hervé Boutemy
2022-05-02 20:37:11 +02:00
committed by GitHub
parent 3d83de9748
commit 6f024f3b72

View File

@@ -51,10 +51,7 @@ cd ${VERSION}
for dist in darwin-amd64.zip linux-amd64.zip windows-amd64.zip src.zip src.tar.gz
do
FILE=mvnd-${VERSION}-${dist}
md5 -q ${FILE} > ${FILE}.md5
shasum -a 1 -b ${FILE} | cut -d ' ' -f 1 > ${FILE}.sha1
shasum -a 256 -b ${FILE} | cut -d ' ' -f 1 > ${FILE}.sha256
shasum -a 512 -b ${FILE} | cut -d ' ' -f 1 > ${FILE}.sha512
gpg --detach-sign --armor ${FILE}
done