forked from dreamanlan/CSharpGameFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cs2lua.bat
24 lines (18 loc) · 905 Bytes
/
cs2lua.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
@echo off
rem working directory
set workdir=%~dp0
cd %workdir%
rem mdb generator
set pdb2mdb=%workdir%\Tools\mono\mono.exe %workdir%\Tools\lib\mono\4.0\pdb2mdb.exe
pushd %workdir%\App\ClientModule\Cs2LuaScript\bin\Debug
for /r %%i in (*.pdb) do (
%pdb2mdb% %%~dpni.dll
)
popd
%workdir%\Tools\cs2lua\Cs2Lua.exe %workdir%\App\ClientModule\Cs2LuaScript\Cs2LuaScript.csproj
xcopy %workdir%\App\ClientModule\Cs2LuaScript\lua\*.txt %workdir%\Unity3d\Assets\Slua\Resources /y /q
xcopy %workdir%\App\ClientModule\Cs2LuaScript\bin\Debug\Cs2LuaScript.dll %workdir%\Unity3d\Assets\StreamingAssets /y /q
xcopy %workdir%\App\ClientModule\Cs2LuaScript\bin\Debug\Cs2LuaUtility.dll %workdir%\Unity3d\Assets\StreamingAssets /y /q
del /a /f %workdir%\Unity3d\Assets\Plugins\Cs2LuaScript.dll
del /a /f %workdir%\Unity3d\Assets\Plugins\Cs2LuaScript.dll.mdb
del /a /f %workdir%\Unity3d\Assets\Plugins\Cs2LuaUtility.dll