Files
UnrealEngineUWP/Engine/Plugins/Web/WebAPI/WebAPIGeneratorApp/start.sh
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

29 lines
772 B
Bash

#!/bin/sh
set -e
# First we check if nodejs is installed
if ! command -v node > /dev/null ; then
echo "ERROR: Couldn't find node.js installed..., Please install latest nodejs from https://nodejs.org/en/download/"
exit 1
fi
# Check if npm is installed
if ! command -v npm > /dev/null ; then
echo "ERROR: Couldn't find npm installed..., Please install npm"
exit 1
fi
# Let's check if it is a modern nodejs
VERSION=$(node -e "console.log( process.versions.node.split('.')[0] );")
echo "Found Node.js version ${VERSION}"
if [ ${VERSION} -lt 14 ] ; then
echo "ERROR: installed node.js version is too old (${VERSION}) :\( Please install latest nodejs from https://nodejs.org/en/download/"
exit 1
fi
FOLDER=$(dirname "$0")
node ${FOLDER}/scripts/start.js "$@"