-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.bat
37 lines (30 loc) · 1.31 KB
/
Build.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
@echo off
echo =====================================================================
echo Installing NuGet packages...
echo =====================================================================
"Dependencies/Tools/NuGet.exe" restore "Source/Lwar.sln" -OutputDirectory "Source/packages"
echo =====================================================================
echo Compiling solution...
echo =====================================================================
cd Source
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv" Lwar.sln /Rebuild "Release Direct3D11|x86"
cd..
if exist \Binaries (
rd Binaries /S /Q
)
mkdir Binaries
cd Binaries
echo =====================================================================
echo Merging assemblies...
echo =====================================================================
cd ..\Build\Release\AnyCPU\
..\..\..\Dependencies\Tools\ILRepack.exe /out:Lwar.exe /internalize Lwar.exe Pegasus.dll Pegasus.IL.dll
cd ..\..\..\Binaries
echo =====================================================================
echo Copying files...
echo =====================================================================
copy "..\Build\Release\AnyCPU\*.pak"
copy "..\Build\Release\AnyCPU\Lwar.exe"
copy "..\Build\Release\AnyCPU\Platform.dll"
copy "..\Build\Release\AnyCPU\Server.dll"
cd..