diff --git a/tools_pc/bundle-win.sh b/tools_pc/bundle-win.sh index 4ee2e709..0964e081 100755 --- a/tools_pc/bundle-win.sh +++ b/tools_pc/bundle-win.sh @@ -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"