forked from ISeeDEDPpl/Questor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
#Compile# - QuestorOnly.bat
71 lines (65 loc) · 2.21 KB
/
#Compile# - QuestorOnly.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
68
69
70
71
@Echo off
::set releasetype=Release
set releasetype=Debug
::
:: path to msbuild compiler - do not include trailing slash
::
set msbuild35=%systemroot%\Microsoft.Net\FrameWork\v3.5\msbuild.exe
set msbuild4=%systemroot%\Microsoft.Net\FrameWork\v4.0.30319\msbuild.exe
::
::
:: clear existing DLLs and EVEs from the previous build(s)
::
del .\bin\debug\*.* /Q
del .\bin\debug\*.* /Q
del .\bin\release\*.* /Q
del .\bin\release\*.* /Q
::
:: Build Project 1
::
set nameofproject=Questor
set csproj=.\questor\Questor.csproj
"%msbuild4%" "%csproj%" /p:configuration="%releasetype%" /target:Clean;Build
Echo Done building %nameofproject% - see above for any errors - 1 of 3 builds
pause
::
:: Build Project 2
::
set nameofproject=Questor.Modules
set csproj=.\Questor.Modules\Questor.Modules.csproj
"%msbuild4%" "%csproj%" /p:configuration="%releasetype%" /target:Clean;Build
Echo Done building %nameofproject% - see above for any errors - 2 of 3 builds
pause
::
:: Build Project 3
::
set nameofproject=QuestorDLL
set csproj=.\questor\QuestorDLL.csproj
"%msbuild4%" "%csproj%" /p:configuration="%releasetype%" /target:Clean;Build
Echo Done building %nameofproject% - see above for any errors - 3 of 3 builds
pause
if not exist output mkdir output >>nul 2>>nul
:: Echo deleting old build from the output directory
del .\output\*.exe /Q >>nul 2>>nul
del .\output\*.dll /Q >>nul 2>>nul
del .\output\*.pdb /Q >>nul 2>>nul
del .\output\*.bak /Q >>nul 2>>nul
::
:: DO NOT delete the XMLs as this is the ONLY directory they exist in now.
::
::del .\output\*.xml /Q >>nul 2>>nul
::
:: Eventually all EXEs and DLLs will be in the following common directory...
::
copy .\bin\%releasetype%\*.exe .\output\ >>nul 2>>nul
copy .\bin\%releasetype%\*.dll .\output\ >>nul 2>>nul
if "%releasetype%"=="Debug" copy .\bin\%releasetype%\*.pdb .\output\ >>nul 2>>nul
::Echo Copying mostly static files...
::copy .\questor\invtypes.xml .\output\
::copy .\questor\ShipTargetValues.xml .\output\
::copy .\questor\factions.xml .\output\
::copy .\questor\settings.xml .\output\settings-template-rename-to-charactername.xml
Echo.
Echo use #TransferToLiveCopy#.bat to move the new build into place for testing
Echo.
pause