-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.bat
78 lines (61 loc) · 2.72 KB
/
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
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
@echo off
SET QTDIR=C:\Qt\5.3\msvc2013
SET OUTPUT=%~dp0deploy\
if exist "%OUTPUT%" rmdir /q /s "%OUTPUT%"
mkdir "%OUTPUT%"
copy %~dp0Trebuchet.exe %OUTPUT%
copy %QTDIR%\bin\Qt5Core.dll %OUTPUT%
copy %QTDIR%\bin\Qt5Gui.dll %OUTPUT%
copy %QTDIR%\bin\Qt5Qml.dll %OUTPUT%
copy %QTDIR%\bin\Qt5Multimedia.dll %OUTPUT%
copy %QTDIR%\bin\Qt5Quick.dll %OUTPUT%
copy %QTDIR%\bin\Qt5MultimediaQuick_p.dll %OUTPUT%
copy %QTDIR%\bin\Qt5Network.dll %OUTPUT%
copy %QTDIR%\bin\Qt5Svg.dll %OUTPUT%
call :copydir %QTDIR%\qml QtQuick.2 plugins.qmltypes qmldir qtquick2plugin.dll
call :copydir %QTDIR%\plugins platforms qwindows.dll
call :copydir %QTDIR%\plugins imageformats qjpeg.dll
call :copydir %QTDIR%\plugins mediaservice dsengine.dll qtmedia_audioengine.dll wmfengine.dll
call :copydir %QTDIR%\qml QtQuick\Layouts plugins.qmltypes qmldir qquicklayoutsplugin.dll
call :copydir %QTDIR%\qml QtQuick\Window.2 plugins.qmltypes qmldir windowplugin.dll
call :copydir %QTDIR%\qml QtQuick\Controls plugins.qmltypes qmldir qtquickcontrolsplugin.dll ApplicationWindow.qml CheckBox.qml Slider.qml TextField.qml
REM call :copydir %QTDIR%\qml QtQuick\Controls\Private qmldir style.js AbstractCheckable.qml Control.qml SourceProxy.qml Style.qml
call :copydir %QTDIR%\qml QtQuick\Controls\Private qmldir *.js *.qml
call :copydir %QTDIR%\qml QtQuick\Controls\Styles qmldir
call :copydir %QTDIR%\qml QtQuick\Controls\Styles\Base CheckBoxStyle.qml SliderStyle.qml
call :copydir %QTDIR%\qml QtQuick\Controls\Styles\Base\images check.png
call :copydir %QTDIR%\qml QtQuick\Controls\Styles\Desktop CheckBoxStyle.qml SliderStyle.qml
call :copydir %QTDIR%\qml QtMultimedia plugins.qmltypes qmldir declarative_multimedia.dll Video.qml
call :copydir %QTDIR%\qml QtGraphicalEffects qmldir BrightnessContrast.qml GammaAdjust.qml
call :copydir %QTDIR%\qml QtGraphicalEffects\private SourceProxy.qml
copy %QTDIR%\bin\Qt5Widgets.dll %OUTPUT%
copy %QTDIR%\bin\Qt5MultimediaWidgets.dll %OUTPUT%
REM ANGLE
copy %QTDIR%\bin\libglesv2.dll %OUTPUT%
copy %QTDIR%\bin\libegl.dll %OUTPUT%
copy %QTDIR%\bin\d3dcompiler_47.dll %OUTPUT%
REM unicode
copy %QTDIR%\bin\icuin52.dll %OUTPUT%
copy %QTDIR%\bin\icuuc52.dll %OUTPUT%
copy %QTDIR%\bin\icudt52.dll %OUTPUT%
REM CRT
copy "%VS120COMNTOOLS%..\..\VC\redist\x86\Microsoft.VC120.CRT\msvcr120.dll" %OUTPUT%
copy "%VS120COMNTOOLS%..\..\VC\redist\x86\Microsoft.VC120.CRT\msvcp120.dll" %OUTPUT%
goto :eof
:copydir
@setlocal enableextensions
SET source=%1
SET relative=%2
shift
shift
echo %source%\%relative% -- %OUTPUT%%relative%
if not exist "%OUTPUT%%relative%" (
mkdir %OUTPUT%%relative%
)
:loop
if "%1" neq "" (
copy %source%\%relative%\%1 %OUTPUT%%relative%
shift
goto :loop
)
goto :eof