forked from ServUO/ServUO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Compile.WIN - Release.bat
71 lines (42 loc) · 1.08 KB
/
Compile.WIN - Release.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
@SET CURPATH=%~dp0
@SET CSCPATH=%CURPATH%bin\roslyn\
@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" /r:"%CURPATH%Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll" /target:library /out:"%CURPATH%Ultima.dll" /recurse:"%SDKPATH%*.cs" /d:ServUO /d:NEWTIMERS /nowarn:0618 /nologo /unsafe /optimize
@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" /r:"%CURPATH%Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll" /target:exe /out:"%CURPATH%%EXENAME%.exe" /recurse:"%SRVPATH%*.cs" /d:ServUO /d:NEWTIMERS /d:NETFX_472 /nowarn:0618 /nologo /unsafe /optimize
@ECHO OFF
@ECHO:
@ECHO: Done!
@ECHO:
@PAUSE
@CLS
::##########
@ECHO:
@ECHO: Ready To Run!
@ECHO:
@PAUSE
@CLS
@ECHO OFF
"%CURPATH%%EXENAME%.exe"