@Rem Copyright Epic Games, Inc. All Rights Reserved.

@echo off

@Rem Set script location as working directory for commands.
pushd "%~dp0"

@Rem Ensure we have NodeJs available for calling.
call setup_node.bat
if errorlevel 1 (
  popd
  exit /b %errorlevel%
)

@Rem Ensure we have CoTURN available for calling.
call setup_coturn.bat
if errorlevel 1 (
  popd
  exit /b %errorlevel%
)

@Rem Move to cirrus.js directory and install its package.json
pushd %~dp0\..\..\
call platform_scripts\cmd\node\npm install --no-save
popd

@Rem Pop working directory
popd