untitled-roguelike/build_debug.bat
2026-05-03 02:09:13 -07:00

16 lines
No EOL
452 B
Batchfile

@echo off
:: This creates a build that is similar to a release build, but it's debuggable.
:: There is no hot reloading and no separate game library.
set OUT_DIR=build\debug
if not exist %OUT_DIR% mkdir %OUT_DIR%
odin build source\main_release -out:%OUT_DIR%\game_debug.exe -strict-style -vet -debug
IF %ERRORLEVEL% NEQ 0 exit /b 1
xcopy /y /e /i assets %OUT_DIR%\assets > nul
IF %ERRORLEVEL% NEQ 0 exit /b 1
echo Debug build created in %OUT_DIR%