Spaces:
Running
Running
File size: 997 Bytes
d646dd7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | @echo off
rem One-click deploy/start entry (Windows). Double-click = full deploy.
rem Use "deploy.bat --check-only" for a check-only run.
rem Shared cross-platform logic lives in deploy.py.
rem Keep this file ASCII-only: cmd.exe parses .bat in the OEM codepage.
setlocal EnableExtensions EnableDelayedExpansion
cd /d "%~dp0"
set "EXIT_CODE=1"
where py >nul 2>nul
if not errorlevel 1 (
py -3.12 -c "pass" >nul 2>nul
if not errorlevel 1 (
py -3.12 deploy.py %*
set "EXIT_CODE=!ERRORLEVEL!"
goto :finish
)
py -3 -c "pass" >nul 2>nul
if not errorlevel 1 (
py -3 deploy.py %*
set "EXIT_CODE=!ERRORLEVEL!"
goto :finish
)
)
where python >nul 2>nul
if not errorlevel 1 (
python deploy.py %*
set "EXIT_CODE=!ERRORLEVEL!"
goto :finish
)
python3 deploy.py %*
set "EXIT_CODE=!ERRORLEVEL!"
:finish
echo.
echo ==============================
echo Deploy finished. Press any key to close.
echo ==============================
pause >nul
endlocal & exit /b %EXIT_CODE%
|