From 8db9a80a23bea63bea4750d70d9e02b904e42b70 Mon Sep 17 00:00:00 2001 From: Filip Maciejewski Date: Tue, 13 Feb 2018 01:14:41 +0100 Subject: [PATCH] Update build.bat --- build.bat | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/build.bat b/build.bat index 0a0fa29d..73f40efe 100644 --- a/build.bat +++ b/build.bat @@ -1,23 +1,22 @@ @echo off -rem check that makepbo exists before continuing -where /q makepbo +rem Check that https://nodejs.org/en/download/ exists before continuing +where /q node if ERRORLEVEL 1 ( - echo makepbo is missing. Ensure it is installed. It can be downloaded from: - echo https://armaservices.maverick-applications.com/Products/MikerosDosTools/FileBrowserFree + echo node is missing. Ensure it is installed. It can be downloaded from: + echo https://nodejs.org/en/download/ timeout 30 exit /b ) -rem Remove and recreate build folder -if exist build rd /s /q build >NUL -if not exist build mkdir build >NUL +rem CD into build tool directory +cd %~dp0_tools -rem Create each mission with the framework files -for /D %%s in (Missionbasefiles\*) do ( - @echo %%~nxs - xcopy %%s build\%%~nxs /s /e /i /q >NUL - xcopy Missionframework\* build\%%~nxs /s /e /q >NUL - makepbo -np build\%%~nxs build\%%~nxs.pbo >NUL - rd /s /q build\%%~nxs >NUL -) +rem Install dependencies and build missions +call npm install --loglevel=error +call npx gulp + +echo. + +pause +exit /b