forked from ServUO/ServUO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Compile.WIN - Debug.bat
93 lines (58 loc) · 1.3 KB
/
Compile.WIN - Debug.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
@SET CURPATH=%~dp0
@SET CSCPATH=%windir%\Microsoft.NET\Framework\v4.0.30319\
@SET SDKPATH=%CURPATH%Ultima\
@SET SRVPATH=%CURPATH%Server\
@SET EXENAME=ServUO
@TITLE: %EXENAME% - https://www.servuo.com
::##########
@ECHO:
@ECHO: Compile Ultima SDK
@ECHO:
@PAUSE
@DEL "%CURPATH%Ultima.dll"
@ECHO ON
%CSCPATH%csc.exe /target:library /out:"%CURPATH%Ultima.dll" /recurse:"%SDKPATH%*.cs" /d:ServUO /d:NEWTIMERS /d:DEBUG /nowarn:0618 /debug /nologo /unsafe
@ECHO OFF
@ECHO:
@ECHO: Done!
@ECHO:
@PAUSE
@CLS
::##########
@ECHO:
@ECHO: Compile %EXENAME% for Windows
@ECHO:
@PAUSE
@DEL "%CURPATH%%EXENAME%.exe"
@ECHO ON
%CSCPATH%csc.exe /win32icon:"%SRVPATH%servuo.ico" /r:"%CURPATH%Ultima.dll" /target:exe /out:"%CURPATH%%EXENAME%.exe" /recurse:"%SRVPATH%*.cs" /d:ServUO /d:NEWTIMERS /d:NETFX_40 /d:DEBUG /nowarn:0618 /debug /nologo /unsafe
@ECHO OFF
@ECHO:
@ECHO: Done!
@ECHO:
@PAUSE
@CLS
::##########
:Ask
echo Would you like to use debug mode?(Y/N)
set INPUT=
set /P INPUT=Type input: %=%
If /I "%INPUT%"=="y" goto yes
If /I "%INPUT%"=="n" goto no
echo Incorrect input & goto Ask
:yes
@ECHO:
@ECHO: Ready To Run! %EXENAME% will be started in DEBUG Mode (-debug)
@ECHO:
@PAUSE
@CLS
@ECHO OFF
%CURPATH%%EXENAME%.exe -debug
:no
@ECHO:
@ECHO: Ready To Run!
@ECHO:
@PAUSE
@CLS
@ECHO OFF
%CURPATH%%EXENAME%.exe