You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Commit 1 of 2 #preflight 62fd09e3e64b1a51093054a7 #fyi Simon.Therriault Andy.Blondin David,Gralnik [CL 21426292 by Amir Keren in ue5-main branch]
29 lines
959 B
Batchfile
Executable File
29 lines
959 B
Batchfile
Executable File
@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
|
|
)
|
|
|
|
if %errorlevel% GEQ 17 (
|
|
REM Due to changes on Node.js v17, --openssl-legacy-provider was added for handling key size on OpenSSL v3
|
|
SET NODE_OPTIONS=--openssl-legacy-provider
|
|
)
|
|
|
|
rem redirecting all command line arguments to node script
|
|
node Scripts/start.js %* |