15 lines
No EOL
407 B
Batchfile
15 lines
No EOL
407 B
Batchfile
:: This script creates an optimized release build.
|
|
|
|
@echo off
|
|
|
|
set OUT_DIR=build\release
|
|
|
|
if not exist %OUT_DIR% mkdir %OUT_DIR%
|
|
|
|
odin build source\main_release -out:%OUT_DIR%\game_release.exe -strict-style -vet -no-bounds-check -o:speed -subsystem:windows
|
|
IF %ERRORLEVEL% NEQ 0 exit /b 1
|
|
|
|
xcopy /y /e /i assets %OUT_DIR%\assets > nul
|
|
IF %ERRORLEVEL% NEQ 0 exit /b 1
|
|
|
|
echo Release build created in %OUT_DIR% |