forked from myst6re/makoureactor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.bat
28 lines (21 loc) · 840 Bytes
/
deploy.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
@echo off
set OUTPUT_DIR=deploy
set EXE_PATH=release\Makou_Reactor.exe
set LIB_DIR=%QTDIR%\bin
set QT_TR_DIR=%QTDIR%\translations
set LANGUAGES=fr ja
rem Create target directory
if not exist %OUTPUT_DIR% mkdir %OUTPUT_DIR%
rem Deploy DLLs
%LIB_DIR%\windeployqt.exe --force --release --dir %OUTPUT_DIR% --no-quick-import --no-translations --no-webkit2 --no-angle --no-svg --no-webkit %EXE_PATH%
rem Removing unused DLLs
del /q %OUTPUT_DIR%\opengl32sw.dll
rem Deploy Translations
for %%l in (%LANGUAGES%) do (
%LIB_DIR%\lconvert -o %OUTPUT_DIR%\qt_%%l.qm -no-obsolete -no-ui-lines %QT_TR_DIR%\qtbase_%%l.qm
echo "Create %QT_TR_DIR%\qtbase_%%l.qm"
)
rem Deploy Exe
xcopy /y %EXE_PATH% %OUTPUT_DIR%
rem Compress Exe and DLLs. Note: DLLs in platforms/ directory should not be compressed.
upx %OUTPUT_DIR%\*.dll %OUTPUT_DIR%\*.exe