Files
UnrealEngineUWP/Engine/Plugins/Web/WebAPI/WebAPIGeneratorApp/start.bat
George Rolfe e54c69d811 WebAPI re-submit
#rb simon.therriault
#jira UETOOL-4463
#preflight 62424a85c61d8a458f223a59

[CL 19540648 by George Rolfe in ue5-main branch]
2022-03-29 08:43:59 -04:00

23 lines
775 B
Batchfile

@echo off
rem Add default nodejs installation folder to path, in case it was not added / overwritten
SET PATH=%PATH%;%ProgramFiles%\nodejs\
rem Check if nodejs is in the env variable PATH
for %%X in (node.exe) do (set node=%%~$PATH:X)
if not defined node (
echo ERROR: Couldn't find node.js installed, Please install latest nodejs from https://nodejs.org/en/download/
exit 1
)
rem Let's check if it is a modern nodejs
node -e "process.exit( process.versions.node.split('.')[0] );"
echo Found Node.js version %errorlevel% (%node%)
if %errorlevel% LSS 14 (
echo ERROR: installed node.js version is too old, please install latest nodejs from https://nodejs.org/en/download/
exit 1
)
rem redirecting all command line arguments to node script
node scripts/start.js %*