Files

22 lines
626 B
Batchfile

@echo off
setlocal EnableExtensions DisableDelayedExpansion
set "PO_KIT_ROOT=%~dp0"
cd /d "%PO_KIT_ROOT%"
set "PYTHONUTF8=1"
set "PYTHONIOENCODING=utf-8"
set "PYTHONHOME="
set "PYTHONPATH="
if not exist "%PO_KIT_ROOT%.buildenv\Scripts\python.exe" goto missing
"%PO_KIT_ROOT%.buildenv\Scripts\python.exe" "%PO_KIT_ROOT%win7\build.py" build
if errorlevel 1 goto failed
echo.
echo EXE is in the new dated subfolder under dist. See BUILD_INFO.json.
pause
exit /b 0
:missing
echo Run 01_install_env.cmd successfully first.
:failed
echo BUILD FAILED. Check the messages and build log. Keep the old server unchanged.
pause
exit /b 1