20 lines
453 B
Batchfile
20 lines
453 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
echo RC RaceCore - Windows 11 setup
|
|
echo.
|
|
|
|
rem setup.ps1 refreshes PATH after a Node installation and runs npm.cmd restart.
|
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0setup.ps1" -StartServer %*
|
|
set "EXIT_CODE=%ERRORLEVEL%"
|
|
|
|
echo.
|
|
if not "%EXIT_CODE%"=="0" (
|
|
echo [ERROR] Setup failed with exit code %EXIT_CODE%.
|
|
) else (
|
|
echo [OK] Setup completed.
|
|
)
|
|
echo Press any key to close.
|
|
pause >nul
|
|
exit /b %EXIT_CODE%
|