-
Notifications
You must be signed in to change notification settings - Fork 12
/
build_launcher_2017.bat
47 lines (40 loc) · 1.38 KB
/
build_launcher_2017.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
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
set QT_PATH=C:\Qt\5.12\msvc2017\bin\
set JOM=C:\Qt\Tools\QtCreator\bin\jom
if not exist build-smbx-launcher\NUL md build-smbx-launcher
cd build-smbx-launcher
%QT_PATH%\qmake -spec win32-msvc CONFIG+=Win32 CONFIG+=release CONFIG-=debug ../LunadllNewLauncher/SMBXLauncher/SMBXLauncher.pro
%JOM% /J 4
if errorlevel 1 exit 1
if exist build-smbx-launcher\NUL rd /S /Q deploy
md deploy
copy release\SMBXLauncher.exe deploy
cd deploy
%QT_PATH%\windeployqt --release SMBXLauncher.exe
rem ----------------------- A CLEAN-UP -----------------------
rem Bearer is for audio streaming, unneeded
rd /S /Q bearer
rem Print support is unused
rd /S /Q printsupport
rem Position is unused
rd /S /Q position
rem Icon engines are unused
rd /S /Q iconengines
rem Unneeded Image formats support for Qt itself for icons and pixmaps, QtWebEngine has own that works
del imageformats\qgif.dll
del imageformats\qicns.dll
del imageformats\qjpeg.dll
del imageformats\qsvg.dll
del imageformats\qtga.dll
del imageformats\qtiff.dll
del imageformats\qwbmp.dll
del imageformats\qwebp.dll
rem D3D Compiler is unneeded, it's already in a system
del D3Dcompiler_*.dll
rem Serial port is unused
del Qt5SerialPort.dll
rem SVG for Qt itself is unused
del Qt5Svg.dll
rem ----------------------- A CLEAN-UP -----------------------
cd ..
cd ..