Statistics
| Branch: | Tag: | Revision:

root / varia / scripts / create_windows_bundle.bat @ 96aa415e

History | View | Annotate | Download (8.5 kB)

1
@ECHO OFF
2
3
set DESTINATION="C:\kadu\git-install"
4
set MINGW_DIR="C:\QtSDK\mingw\bin"
5
set QT_DIR="C:\QtSDK\Desktop\Qt\4.8.0\mingw\bin"
6
set QT_PLUGINS_DIR="C:\QtSDK\Desktop\Qt\4.8.0\mingw\plugins"
7
set QT_TRANSLATIONS_DIR="C:\QtSDK\Desktop\Qt\4.8.0\mingw\translations"
8
set QT_DEBUG_SUFFIX=""
9
set ASPELL_DIR="C:\kadu\deps\aspell-0.60.6-3kde"
10
set ASPELL_DICT_DIR="C:\kadu\deps\aspell-0.60.6-3kde\lib\aspell-0.60"
11
set LIBGADU_DIR="C:\kadu\deps\libgadu-1.12.0-pre"
12
set LIBIDN_DIR="C:\kadu\deps\libidn-1.24-win32"
13
set OPENSSL_DIR="C:\kadu\deps\openssl-0.9.8s"
14
set QCA_DIR="C:\kadu\deps\qca\bin"
15
set QCA_OSSL_DIR="C:\kadu\deps\qca\plugins\qca-ossl\lib"
16
set ZLIB_DIR="C:\kadu\deps\zlib-1.2.5"
17
18
ECHO ! Make sure to set proper paths !
19
20
ECHO Removing existing installation
21
rd %DESTINATION% /S /Q
22
23
ECHO Copying Kadu core
24
xcopy build\kadu-core\kadu*.exe %DESTINATION%\ /R /Y /Q
25
xcopy build\kadu-core\kadu*.dll %DESTINATION%\ /R /Y /Q
26
xcopy kadu-core\kadu.ico        %DESTINATION%\ /R /Y /Q
27
xcopy AUTHORS                   %DESTINATION%\ /R /Y /Q
28
xcopy ChangeLog                 %DESTINATION%\ /R /Y /Q
29
xcopy ChangeLog.OLD-PL          %DESTINATION%\ /R /Y /Q
30
xcopy COPYING                   %DESTINATION%\ /R /Y /Q
31
xcopy HISTORY                   %DESTINATION%\ /R /Y /Q
32
xcopy LICENSE.OpenSSL           %DESTINATION%\ /R /Y /Q
33
xcopy README                    %DESTINATION%\ /R /Y /Q
34
xcopy THANKS                    %DESTINATION%\ /R /Y /Q
35
36
xcopy kadu-core\chat\style-engines\chat-scripts.js %DESTINATION%\scripts\ /C /H /R /Y /Q
37
38
xcopy varia\configuration\*.ui        %DESTINATION%\configuration\ /C /H /R /Y /Q
39
xcopy varia\syntax\chat\*.syntax      %DESTINATION%\syntax\chat\ /C /H /R /Y /Q
40
41
cd varia\syntax\chat
42
for /D %%F in (*) do (
43
	IF EXIST %%F\Contents (
44
		xcopy "%%F" %DESTINATION%\syntax\chat\"%%F" /C /H /R /Y /S /I /Q
45
	)
46
)
47
xcopy Default %DESTINATION%\syntax\chat\Default /C /H /R /Y /S /I /Q
48
cd ..\..\..
49
50
xcopy varia\syntax\infopanel\*.syntax %DESTINATION%\syntax\infopanel\ /C /H /R /Y /Q
51
xcopy translations\cs.language        %DESTINATION%\translations\ /C /H /R /Y /Q
52
xcopy translations\de.language        %DESTINATION%\translations\ /C /H /R /Y /Q
53
xcopy translations\en.language        %DESTINATION%\translations\ /C /H /R /Y /Q
54
xcopy translations\pl.language        %DESTINATION%\translations\ /C /H /R /Y /Q
55
xcopy translations\ru.language        %DESTINATION%\translations\ /C /H /R /Y /Q
56
xcopy build\translations\kadu_cs.qm   %DESTINATION%\translations\ /C /H /R /Y /Q
57
xcopy build\translations\kadu_de.qm   %DESTINATION%\translations\ /C /H /R /Y /Q
58
xcopy build\translations\kadu_en.qm   %DESTINATION%\translations\ /C /H /R /Y /Q
59
xcopy build\translations\kadu_pl.qm   %DESTINATION%\translations\ /C /H /R /Y /Q
60
xcopy build\translations\kadu_ru.qm   %DESTINATION%\translations\ /C /H /R /Y /Q
61
62
cd varia\themes\emoticons
63
for /D %%D in (*) do (
64
	IF NOT "%%D"=="CMakeFiles" (
65
		xcopy %%D %DESTINATION%\themes\emoticons\%%D /C /H /R /Y /S /I /Q
66
	)
67
)
68
69
cd ..\icons
70
for /D %%D in (*) do (
71
	IF NOT "%%D"=="CMakeFiles" (
72
		xcopy %%D %DESTINATION%\themes\icons\%%D /C /H /R /Y /S /I /Q
73
	)
74
)
75
76
cd ..\sounds
77
for /D %%D in (*) do (
78
	IF NOT "%%D"=="CMakeFiles" (
79
		xcopy %%D %DESTINATION%\themes\sounds\%%D /C /H /R /Y /S /I /Q
80
	)
81
)
82
cd ..\..\..
83
84
ECHO Copying Kadu plugins
85
cd build\plugins
86
for /D %%F in (*) do (
87
	IF EXIST %%F\*.a (
88
		IF EXIST %%F\*.dll (
89
		  xcopy %%F\*.dll  %DESTINATION%\plugins\ /C /H /R /Y /Q
90
		)
91
		xcopy ..\..\plugins\%%F\*.desc %DESTINATION%\plugins\ /C /H /R /Y /Q
92
		IF EXIST ..\..\plugins\%%F\configuration\*.ui (
93
			xcopy ..\..\plugins\%%F\configuration\*.ui %DESTINATION%\plugins\configuration\ /C /H /R /Y /Q
94
		)
95
		IF EXIST ..\..\plugins\%%F\data\configuration\*.ui (
96
			xcopy ..\..\plugins\%%F\data\configuration\*.ui %DESTINATION%\plugins\configuration\ /C /H /R /Y /Q
97
		)
98
		IF EXIST %%F\%%F_cs.qm (
99
			xcopy %%F\%%F_cs.qm   %DESTINATION%\plugins\translations\ /C /H /R /Y /Q
100
		)
101
		IF EXIST %%F\%%F_de.qm (
102
			xcopy %%F\%%F_de.qm   %DESTINATION%\plugins\translations\ /C /H /R /Y /Q
103
		)
104
		IF EXIST %%F\%%F_en.qm (
105
			xcopy %%F\%%F_en.qm   %DESTINATION%\plugins\translations\ /C /H /R /Y /Q
106
		)
107
		IF EXIST %%F\%%F_pl.qm (
108
			xcopy %%F\%%F_pl.qm   %DESTINATION%\plugins\translations\ /C /H /R /Y /Q
109
		)
110
		IF EXIST %%F\%%F_ru.qm (
111
			xcopy %%F\%%F_ru.qm   %DESTINATION%\plugins\translations\ /C /H /R /Y /Q
112
		)
113
		IF EXIST ..\..\plugins\%%F\data\* (
114
			xcopy ..\..\plugins\%%F\data\* %DESTINATION%\plugins\data\%%F\ /C /H /R /Y /E /Q
115
		)
116
	)
117
)
118
cd ..\..
119
120
ECHO Copying MinGW runtime
121
xcopy %MINGW_DIR%\libgcc_s_dw2-1.dll               %DESTINATION%\ /C /H /R /Y /Q
122
xcopy %MINGW_DIR%\mingwm10.dll                     %DESTINATION%\ /C /H /R /Y /Q
123
124
ECHO Copying Qt
125
xcopy %QT_DIR%\phonon%QT_DEBUG_SUFFIX%4.dll        %DESTINATION%\ /C /H /R /Y /Q
126
xcopy %QT_DIR%\QtCore%QT_DEBUG_SUFFIX%4.dll        %DESTINATION%\ /C /H /R /Y /Q
127
xcopy %QT_DIR%\QtGui%QT_DEBUG_SUFFIX%4.dll         %DESTINATION%\ /C /H /R /Y /Q
128
xcopy %QT_DIR%\QtNetwork%QT_DEBUG_SUFFIX%4.dll     %DESTINATION%\ /C /H /R /Y /Q
129
xcopy %QT_DIR%\QtScript%QT_DEBUG_SUFFIX%4.dll      %DESTINATION%\ /C /H /R /Y /Q
130
xcopy %QT_DIR%\QtSql%QT_DEBUG_SUFFIX%4.dll         %DESTINATION%\ /C /H /R /Y /Q
131
xcopy %QT_DIR%\QtSvg%QT_DEBUG_SUFFIX%4.dll         %DESTINATION%\ /C /H /R /Y /Q
132
xcopy %QT_DIR%\QtWebKit%QT_DEBUG_SUFFIX%4.dll      %DESTINATION%\ /C /H /R /Y /Q
133
xcopy %QT_DIR%\QtXml%QT_DEBUG_SUFFIX%4.dll         %DESTINATION%\ /C /H /R /Y /Q
134
xcopy %QT_DIR%\QtXmlPatterns%QT_DEBUG_SUFFIX%4.dll %DESTINATION%\ /C /H /R /Y /Q
135
136
ECHO Copying Qt plugins
137
xcopy %QT_PLUGINS_DIR%\bearer\qgenericbearer%QT_DEBUG_SUFFIX%4.dll     %DESTINATION%\qt-plugins\bearer\         /C /H /R /Y /Q
138
xcopy %QT_PLUGINS_DIR%\bearer\qnativewifibearer%QT_DEBUG_SUFFIX%4.dll  %DESTINATION%\qt-plugins\bearer\         /C /H /R /Y /Q
139
xcopy %QT_PLUGINS_DIR%\iconengines\qsvgicon%QT_DEBUG_SUFFIX%4.dll      %DESTINATION%\qt-plugins\iconengines\    /C /H /R /Y /Q
140
xcopy %QT_PLUGINS_DIR%\imageformats\qgif%QT_DEBUG_SUFFIX%4.dll         %DESTINATION%\qt-plugins\imageformats\   /C /H /R /Y /Q
141
xcopy %QT_PLUGINS_DIR%\imageformats\qico%QT_DEBUG_SUFFIX%4.dll         %DESTINATION%\qt-plugins\imageformats\   /C /H /R /Y /Q
142
xcopy %QT_PLUGINS_DIR%\imageformats\qjpeg%QT_DEBUG_SUFFIX%4.dll        %DESTINATION%\qt-plugins\imageformats\   /C /H /R /Y /Q
143
xcopy %QT_PLUGINS_DIR%\imageformats\qmng%QT_DEBUG_SUFFIX%4.dll         %DESTINATION%\qt-plugins\imageformats\   /C /H /R /Y /Q
144
xcopy %QT_PLUGINS_DIR%\imageformats\qsvg%QT_DEBUG_SUFFIX%4.dll         %DESTINATION%\qt-plugins\imageformats\   /C /H /R /Y /Q
145
xcopy %QT_PLUGINS_DIR%\imageformats\qtiff%QT_DEBUG_SUFFIX%4.dll        %DESTINATION%\qt-plugins\imageformats\   /C /H /R /Y /Q
146
xcopy %QT_PLUGINS_DIR%\phonon_backend\phonon_ds9%QT_DEBUG_SUFFIX%4.dll %DESTINATION%\qt-plugins\phonon_backend\ /C /H /R /Y /Q
147
xcopy %QT_PLUGINS_DIR%\sqldrivers\qsqlite%QT_DEBUG_SUFFIX%4.dll        %DESTINATION%\qt-plugins\sqldrivers\     /C /H /R /Y /Q
148
149
ECHO Copying Qt translations (cs, de, pl, ru)
150
xcopy %QT_TRANSLATIONS_DIR%\qt_cs.qm %DESTINATION%\translations\  /C /H /R /Y /Q
151
xcopy %QT_TRANSLATIONS_DIR%\qt_de.qm %DESTINATION%\translations\  /C /H /R /Y /Q
152
xcopy %QT_TRANSLATIONS_DIR%\qt_pl.qm %DESTINATION%\translations\  /C /H /R /Y /Q
153
xcopy %QT_TRANSLATIONS_DIR%\qt_ru.qm %DESTINATION%\translations\  /C /H /R /Y /Q
154
155
ECHO [Paths] > %DESTINATION%\qt.conf
156
ECHO Plugins = qt-plugins >> %DESTINATION%\qt.conf
157
ECHO Translations = translations >> %DESTINATION%\qt.conf
158
159
ECHO Copying QCA
160
xcopy %QCA_DIR%\qca2.dll %DESTINATION%\ /C /H /R /Y /Q
161
162
ECHO Copying QCA OSSL Plugin
163
xcopy %QCA_OSSL_DIR%\qca-ossl2.dll  %DESTINATION%\qt-plugins\crypto\ /C /H /R /Y /Q
164
165
ECHO Copying OpenSSL
166
xcopy %OPENSSL_DIR%\libeay32.dll %DESTINATION%\ /C /H /R /Y /Q
167
xcopy %OPENSSL_DIR%\libssl32.dll %DESTINATION%\ /C /H /R /Y /Q
168
169
ECHO Copying aspell
170
xcopy %ASPELL_DIR%\bin\libaspell.dll        %DESTINATION%\             /C /H /R /Y /Q
171
xcopy %ASPELL_DIR%\bin\libgcc_s_sjlj-1.dll  %DESTINATION%\             /C /H /R /Y /Q
172
xcopy %ASPELL_DIR%\bin\libiconv.dll         %DESTINATION%\             /C /H /R /Y /Q
173
xcopy %ASPELL_DICT_DIR%\*                   %DESTINATION%\aspell\      /C /H /R /Y /Q
174
175
ECHO Copying libgadu
176
xcopy %LIBGADU_DIR%\libgadu.dll %DESTINATION%\ /C /H /R /Y /Q
177
178
ECHO Copying libidn
179
xcopy %LIBIDN_DIR%\bin\libiconv-2.dll %DESTINATION%\ /C /H /R /Y /Q
180
xcopy %LIBIDN_DIR%\bin\libidn-11.dll  %DESTINATION%\ /C /H /R /Y /Q
181
182
ECHO Copying zlib
183
xcopy %ZLIB_DIR%\zlib1.dll %DESTINATION%\ /C /H /R /Y /Q
184
185
rem ECHO Stripping
186
rem cd %DESTINATION%
187
rem for /R %%F in (*.dll) do (
188
rem   strip -x "%%F" -o "%%F.stripped"
189
rem   MOVE /Y "%%F.stripped" "%%F"
190
rem )
191
rem for /R %%F in (*.exe) do (
192
rem   strip "%%F" -o "%%F.stripped"
193
rem   MOVE /Y "%%F.stripped" "%%F"
194
rem )
195
196
ECHO Done