This repository has been archived by the owner on May 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdeploy.bat
67 lines (54 loc) · 2.11 KB
/
deploy.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
REM @echo off
REM SPDX-License-Identifier: MIT
REM The content of this file has been developed in the context of the MOSIM research project.
REM Original author(s): Janis Sprenger, Bhuvaneshwaran Ilanthirayan
REM This is a deploy script to auto-generate the framework, including launcher, mmus, services and adapters.
call deploy_variables.bat
if %ERRORLEVEL% NEQ 0 (
ECHO [31mThere has been an error during deployment! [0m
exit /b %ERRORLEVEL%
)
REM Distribute Unity dlls if the environment variable is set for mixed artefacts (e.g. MMUs).
set unity=F
if defined UNITY2018_4_1 if exist "%UNITY2018_4_1%" set unity=T
if defined UNITY2019_18_1 if exist "%UNITY2019_18_1%" set unity=T
if "%unity%"=="T" (
cd Core
call .\distribute_unity.bat
cd ..
if %ERRORLEVEL% NEQ 0 (
ECHO [31mThere has been an error during deployment! [0m
exit /b %ERRORLEVEL%
)
)
call .\deploy_vs.bat
if %ERRORLEVEL% NEQ 0 (
ECHO [31mThere has been an error during deployment! [0m
exit /b %ERRORLEVEL%
)
call .\deploy_unity.bat
if %ERRORLEVEL% NEQ 0 (
ECHO [31mThere has been an error during deployment! [0m
exit /b %ERRORLEVEL%
)
call .\remove_double_mmus.bat
if %ERRORLEVEL% NEQ 0 (
ECHO [31mThere has been an error during deployment! [0m
exit /b %ERRORLEVEL%
)
REM the link currently does not yet work.
REM RD build\
REM
REM call ..\Scripts\link.vbs StartFramework.lnk Environment\Launcher\MMILauncher.exe
REM CD ..\
ECHO __ __ ___ ____ ___ __ __
ECHO ^| \/ ^|/ _ \/ ___^|_ _^| \/ ^|
ECHO ^| ^|\/^| ^| ^| ^| \___ \^| ^|^| ^|\/^| ^|
ECHO ^| ^| ^| ^| ^|_^| ^|___) ^| ^|^| ^| ^| ^|
ECHO ^|_^| ^|_^|\___/^|____/___^|_^| ^|_^|
ECHO.
ECHO [92mSuccessfully deployed the Framework to %cd%/build/Environment. [0m
ECHO If this is the first time, the framework was deployed, consider utilizing the script %cd%\build\enableFirewall.exe to setup all firewall exceptions.
ECHO [92mTo start the framework[0m, start the launcher at %cd%\build\Environment\Launcher\MMILauncher.exe To use the framework, please open the Unity Demo-Scene at %cd%\Demos\Unity or any other MOSIM-enabled Project.
explorer.exe %cd%\build
pause