mirror of
https://github.com/deunix-educ/aventuriers-des-mots.git
synced 2026-10-13 02:11:58 +02:00
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:
+9
-1
@@ -21,7 +21,15 @@ sed -i \
|
||||
export_presets.cfg
|
||||
|
||||
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() {
|
||||
cat > "$1/LISEZMOI.txt" <<NOTICE
|
||||
|
||||
@@ -22,6 +22,7 @@ for arg in "$@"; do
|
||||
done
|
||||
|
||||
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)"
|
||||
[ -n "${VERSION}" ] || fail "config/version absent de project.godot"
|
||||
|
||||
Reference in New Issue
Block a user