Skip to content

Commit c53fb59

Browse files
authored
Merge pull request #5 from godotengine/add-sha512-sums
Compute and backup SHA-512 sums for release files
2 parents d93b078 + 9176967 commit c53fb59

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ godot.tar.gz
1111
# Output
1212
out/
1313
releases/
14+
sha512sums/
1415
tmp/

build-release.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,14 @@ if [ "${build_classical}" == "1" ]; then
238238
zip -q -9 -r -D "${reldir}/${godot_basename}_export_templates.tpz" templates/*
239239
popd
240240

241+
## SHA-512 sums (Classical) ##
242+
243+
pushd ${reldir}
244+
sha512sum [Gg]* > SHA512-SUMS.txt
245+
mkdir -p ${basedir}/sha512sums/${godot_version}
246+
cp SHA512-SUMS.txt ${basedir}/sha512sums/${godot_version}/
247+
popd
248+
241249
fi
242250

243251
# Mono
@@ -410,6 +418,14 @@ if [ "${build_mono}" == "1" ]; then
410418
zip -q -9 -r -D "${reldir_mono}/${godot_basename}_mono_export_templates.tpz" templates/*
411419
popd
412420

421+
## SHA-512 sums (Mono) ##
422+
423+
pushd ${reldir_mono}
424+
sha512sum [Gg]* >> SHA512-SUMS.txt
425+
mkdir -p ${basedir}/sha512sums/${godot_version}/mono
426+
cp SHA512-SUMS.txt ${basedir}/sha512sums/${godot_version}/mono/
427+
popd
428+
413429
fi
414430

415431
echo "All editor binaries and templates prepared successfully for release"

0 commit comments

Comments
 (0)