-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuildAll.bat
44 lines (29 loc) · 1.22 KB
/
buildAll.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
@echo off
title VroomVroomBuilder
rem Variables de batch
set GAME_ROOT_DIR=%cd%
set ENGINE_DIR=.\MotorEngine\
set VROOM_VROOM_SOL=.\VroomVroom.sln
set VROOM_VROOM_DLL_DIR=.\Bin\x64\
set ENGINE_EXE_DIR=.\MotorEngine\Exe\Main\x64\
set VROOM_VROOM_ASSETS_DIR=.\Assets\
rem Referencia a la herramienta de compresión:
set "zip=.\MotorEngine\Dependencies\7zip\7za.exe"
rem Inicializamos el submódulo
git submodule init
git submodule update
cd %ENGINE_DIR%
call delete-dependencies.bat
call compile-all.bat
cd %GAME_ROOT_DIR%
rem Compilacion de la solucion del juego
msbuild %VROOM_VROOM_SOL% /p:configuration=Debug /p:Platform=x64 /p:PlatformToolset=v143
msbuild %VROOM_VROOM_SOL% /p:configuration=Release /p:Platform=x64 /p:PlatformToolset=v143
rem COPY DLL
robocopy /NJH %VROOM_VROOM_DLL_DIR%\Debug\ %ENGINE_EXE_DIR%\Debug\ "VroomVroom_d.dll"
robocopy /NJH %VROOM_VROOM_DLL_DIR%\Release\ %ENGINE_EXE_DIR%\Release\ "VroomVroom.dll"
rem CREAR BUILD
set "source=.\MotorEngine\Exe\Main\x64\
%zip% a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on Vroom_Vroom_x64_Debug.zip %source%\Debug\* %VROOM_VROOM_ASSETS_DIR%
%zip% a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on Vroom_Vroom_x64_Release.zip %source%\Release\* %VROOM_VROOM_ASSETS_DIR%
exit