Show export failures and unexpected stops in package.sh and release.sh

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Denis Defolie
2026-10-12 17:53:04 +02:00
parent 2e636371d9
commit 67203229d1
2 changed files with 10 additions and 1 deletions
+9 -1
View File
@@ -21,7 +21,15 @@ sed -i \
export_presets.cfg export_presets.cfg
rm -rf build dist rm -rf build dist
make export-linux export-windows export-android export-macos export-web >/dev/null # Les journaux d'export sont conserves ; en cas d'echec on en montre la fin au
# lieu de s'arreter sans un mot.
EXPORT_LOG="$(mktemp)"
trap 'rm -f "${EXPORT_LOG}"' EXIT
if ! make export-linux export-windows export-android export-macos export-web >"${EXPORT_LOG}" 2>&1; then
echo "ERREUR : un export a echoue. Fin du journal :" >&2
tail -n 25 "${EXPORT_LOG}" >&2
exit 1
fi
write_notice() { write_notice() {
cat > "$1/LISEZMOI.txt" <<NOTICE cat > "$1/LISEZMOI.txt" <<NOTICE
+1
View File
@@ -22,6 +22,7 @@ for arg in "$@"; do
done done
fail() { echo "ERREUR : $*" >&2; exit 1; } fail() { echo "ERREUR : $*" >&2; exit 1; }
trap 'echo "ERREUR : arret inattendu a la ligne ${LINENO} (code $?)" >&2' ERR
VERSION="$(sed -n 's/^config\/version="\(.*\)"/\1/p' project.godot)" VERSION="$(sed -n 's/^config\/version="\(.*\)"/\1/p' project.godot)"
[ -n "${VERSION}" ] || fail "config/version absent de project.godot" [ -n "${VERSION}" ] || fail "config/version absent de project.godot"