Skip to content

Commit

Permalink
Add deploy-full.bat which includes LuaScriptsLibExt
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinW1998 committed Dec 14, 2016
1 parent 4213c4a commit 7c6ac58
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions deploy-full.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@echo off

SET SEVENZIP=C:\Program Files\7-Zip
IF NOT EXIST "%SEVENZIP%\7z.exe" SET SEVENZIP=C:\Program Files (x86)\7-Zip
IF NOT EXIST "%SEVENZIP%\7z.exe" SET SEVENZIP=C:\Programs\7-Zip

set CurDir=%CD%

set DeployDir=%CurDir%\LunaLUA-bin
set DeployDirL=%CurDir%\LunaLUA-loader-bin

if exist "%DeployDir%\*" del /Q /F /S "%DeployDir%\*" > NUL
if not exist "%DeployDir%\*" md "%DeployDir%" > NUL
if exist "%DeployDirL%\*" del /Q /F /S "%DeployDirL%\*" > NUL
if not exist "%DeployDirL%\*" md "%DeployDirL%" > NUL

echo Copying Lua scripts library (+ Optional Libraries) ...
xcopy /Y /E /I %CurDir%\LuaScriptsLib\*.* "%DeployDir%\LuaScriptsLib" > NUL
xcopy /Y /E /I %CurDir%\LuaScriptsLibExt\*.* "%DeployDir%\LuaScriptsLib" > NUL

echo Copying LunaLUA binaries...
copy "%CurDir%\Release\LunaDll.dll" "%DeployDir%" > NUL
copy "%CurDir%\Release\LunaDll.pdb" "%DeployDir%" > NUL
copy "%CurDir%\Release\LunaLoader.exe" "%DeployDirL%" > NUL

echo Installing SDL2 and SDL2_mixer_ext...
copy "%CurDir%\LunaDll\libs\sdl\bin\*.dll" "%DeployDir%" > NUL

rem Free image no needed if static FreeImageLite was built
rem echo Installing FreeImage...
rem copy "%CurDir%\LunaDll\libs\freeimage\*.dll" "%DeployDir%" > NUL

echo Installing Glew32...
copy "%CurDir%\LunaDll\libs\glew\bin\Release\Win32\*.dll" "%DeployDir%" > NUL

copy "%CurDir%\LunaDll\Changelog.txt" "%DeployDir%" > NUL

echo Packing LunaLUA...
"%SEVENZIP%\7z" a -tzip "LunaLUA-bin.zip" %DeployDir%\*.* "%DeployDir%\LuaScriptsLib" > NUL
echo Packing LunaLoader...
"%SEVENZIP%\7z" a -tzip "LunaLoader-bin.zip" %DeployDirL%\*.* > NUL

echo.
echo "Everything is completed!"
echo.

if not "%1"=="nopause" pause

0 comments on commit 7c6ac58

Please sign in to comment.