-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathdslcopy.bat
58 lines (50 loc) · 1.3 KB
/
dslcopy.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
@echo off
if NOT "%1" EQU "" (
set cfg=%1
) else (
set cfg=Debug
)
if NOT "%2" EQU "" (
set is_pause=%2
) else (
set is_pause=True
)
rem lang: chs cht kr
set lang=chs
rem working directory
set workdir=%~dp0
set svrdsl=%workdir%\App\ServerModule\ServerEnv\bin\Dsl
set clidsl=%workdir%\Unity3d\Assets\StreamingAssets\Dsl
set dsldir=%workdir%\Resource\DslFile
set svrtable=%workdir%\App\ServerModule\ServerEnv\bin\Tables
set clitable=%workdir%\Unity3d\Assets\StreamingAssets\Tables
set tabledir=%workdir%\Resource\Tables
rem dsl copy and convert *.dsl from txt to binary (only release version)
if "%cfg%" EQU "Release" (
set dslcopy=%workdir%\Tools\DslCopy\bin\Debug\net6.0\DslCopy.exe
) else (
set dslcopy=%workdir%\Tools\DslCopy\bin\Release\net6.0\DslCopy.exe
)
rem tabel copy
if "%cfg%" EQU "Release" (
set tablecopy=%workdir%\Tools\TableReaderGenerator\bin\Debug\net6.0\TableReaderGenerator.exe
) else (
set tablecopy=%workdir%\Tools\TableReaderGenerator\bin\Debug\net6.0\TableReaderGenerator.exe
)
echo update dsl and table files
%dslcopy% %dsldir% %clidsl%
%tablecopy% %tabledir% %clitable%
%dslcopy% %dsldir% %svrdsl%
%tablecopy% %tabledir% %svrtable% isserver
goto good_end
:error_end
set ec=1
goto end
:good_end
set ec=0
echo All Done, Good to Go.
:end
if %is_pause% EQU True (
pause
exit /b %ec%
)