@REM Isn't windows a lovely place???
@set WORKDIR=%cd%
@set TOOLDIR=%~dp0
@cd %USERPROFILE%\AppData
@if not exist "@FLAVOR@\" mkdir @FLAVOR@
@cd @FLAVOR@
@if not exist "@MCCODE_VERSION@\" mkdir @MCCODE_VERSION@
@cd @MCCODE_VERSION@
@if not exist "webgl\" mkdir webgl
@cd webgl
@copy /Y %TOOLDIR%\*.tsx .
@copy /Y %TOOLDIR%\*.css .
@copy /Y %TOOLDIR%\index.html .
@copy /Y %TOOLDIR%\*.js .
@copy /Y %TOOLDIR%\package.json .
@Xcopy %TOOLDIR%\Contexts\ Contexts /c /i /e /h /y
@xcopy %TOOLDIR%\utils\ utils /c /i /e /h /y
@xcopy %TOOLDIR%\data-utils\ data-utils /c /i /e /h /y
@xcopy %TOOLDIR%\components\ components /c /i /e /h /y
@call npm.cmd install
@call npm.cmd run build
@cd %WORKDIR%\

