Update build.bat

This commit is contained in:
Filip Maciejewski 2018-02-13 01:14:41 +01:00
parent b6a18f94fa
commit 8db9a80a23
1 changed files with 14 additions and 15 deletions

View File

@ -1,23 +1,22 @@
@echo off @echo off
rem check that makepbo exists before continuing rem Check that https://nodejs.org/en/download/ exists before continuing
where /q makepbo where /q node
if ERRORLEVEL 1 ( if ERRORLEVEL 1 (
echo makepbo is missing. Ensure it is installed. It can be downloaded from: echo node is missing. Ensure it is installed. It can be downloaded from:
echo https://armaservices.maverick-applications.com/Products/MikerosDosTools/FileBrowserFree echo https://nodejs.org/en/download/
timeout 30 timeout 30
exit /b exit /b
) )
rem Remove and recreate build folder rem CD into build tool directory
if exist build rd /s /q build >NUL cd %~dp0_tools
if not exist build mkdir build >NUL
rem Create each mission with the framework files rem Install dependencies and build missions
for /D %%s in (Missionbasefiles\*) do ( call npm install --loglevel=error
@echo %%~nxs call npx gulp
xcopy %%s build\%%~nxs /s /e /i /q >NUL
xcopy Missionframework\* build\%%~nxs /s /e /q >NUL echo.
makepbo -np build\%%~nxs build\%%~nxs.pbo >NUL
rd /s /q build\%%~nxs >NUL pause
) exit /b