Compute and backup SHA-512 sums for release files

The sums are included both in the release folder, and in a separate
`sha512sums` folder in the base directory, to allow verifying that
the sums on the download repository haven't been tampered with.
This commit is contained in:
Rémi Verschelde
2020-05-07 14:50:24 +02:00
parent d93b0785a8
commit 9176967e98
2 changed files with 17 additions and 0 deletions

1
.gitignore vendored
View File

@@ -11,4 +11,5 @@ godot.tar.gz
# Output
out/
releases/
sha512sums/
tmp/

View File

@@ -238,6 +238,14 @@ if [ "${build_classical}" == "1" ]; then
zip -q -9 -r -D "${reldir}/${godot_basename}_export_templates.tpz" templates/*
popd
## SHA-512 sums (Classical) ##
pushd ${reldir}
sha512sum [Gg]* > SHA512-SUMS.txt
mkdir -p ${basedir}/sha512sums/${godot_version}
cp SHA512-SUMS.txt ${basedir}/sha512sums/${godot_version}/
popd
fi
# Mono
@@ -410,6 +418,14 @@ if [ "${build_mono}" == "1" ]; then
zip -q -9 -r -D "${reldir_mono}/${godot_basename}_mono_export_templates.tpz" templates/*
popd
## SHA-512 sums (Mono) ##
pushd ${reldir_mono}
sha512sum [Gg]* >> SHA512-SUMS.txt
mkdir -p ${basedir}/sha512sums/${godot_version}/mono
cp SHA512-SUMS.txt ${basedir}/sha512sums/${godot_version}/mono/
popd
fi
echo "All editor binaries and templates prepared successfully for release"