mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 23:38:37 +00:00
make_game.py no longer needs --game: it looks for a supported copy in the usual places (by a few file sizes only), asks when there are several or none, checks every prerequisite and free space before a long build, and fetches the rpf9-explorer submodule when git is available. Build.bat runs it by double-click. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
682 B
Batchfile
21 lines
682 B
Batchfile
@echo off
|
|
rem Double-click to build. Finds your copy of the game, checks what's installed, and builds into
|
|
rem Documents\Leonida. Extra options pass through, e.g. Build.bat --out D:\Games\Leonida
|
|
setlocal
|
|
cd /d "%~dp0"
|
|
set "PY="
|
|
where py >nul 2>nul && set "PY=py -3"
|
|
if not defined PY where python >nul 2>nul && set "PY=python"
|
|
if not defined PY (
|
|
echo Python 3.11 or newer is needed: https://www.python.org/downloads/
|
|
echo Tick "Add python.exe to PATH" during setup, then run Build.bat again.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
%PY% -I "%~dp0make_game.py" %*
|
|
set "RC=%ERRORLEVEL%"
|
|
echo.
|
|
if "%RC%"=="0" (echo Done.) else (echo The build stopped. Read the message above.)
|
|
pause
|
|
exit /b %RC%
|