bundle-win.sh: package build-pc/ge007.x86_64.exe first, not a leftover renamed exe

This commit is contained in:
James Dansereau committed 2026-10-06 22:15:28 -04:00
1 parent 0a80d19333
commit 4875fd4343
1 file changed
+6 -1
+6 -1
View File
@@ -27,7 +27,12 @@ NAME="goldeneye-pc-port-${VERSION}-win64"
OUT="dist/${NAME}"
MINGW="${MINGW_PREFIX:-/mingw64}"
EXE="$(ls build-pc/ge007*.exe 2>/dev/null | head -n1 || true)"
# Prefer the real build output; a local build-pc/ can also hold renamed A/B or
# probe copies (ge007.abpad.exe, ...) that sort first (CI's fresh tree has one).
EXE=""
for cand in build-pc/ge007.x86_64.exe build-pc/ge007*.exe; do
if [ -f "$cand" ]; then EXE="$cand"; break; fi
done
[ -n "$EXE" ] || { echo "error: no build-pc/ge007*.exe found — run ./build-pc.sh first" >&2; exit 1; }
echo "==> Bundling $EXE -> $NAME"