mirror of
https://github.com/godotengine/godot-build-scripts.git
synced 2026-02-25 06:33:22 +03:00
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:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -11,4 +11,5 @@ godot.tar.gz
|
||||
# Output
|
||||
out/
|
||||
releases/
|
||||
sha512sums/
|
||||
tmp/
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user