Commit b770e041 authored by Andreas Traczyk's avatar Andreas Traczyk

packaging: use qt deployment tool to harvest qt deps

Change-Id: I337a5ab4541bf09e6326a7e420472c8e852aa1c6
parent c2e6729f
......@@ -48,92 +48,8 @@ foreach ($i in $FilesToCopy) {
############
# qt
############
# qt bin files
$FilesToCopy = @(
"$QtDir\bin\Qt5Core.dll",
"$QtDir\bin\Qt5Gui.dll",
"$QtDir\bin\Qt5Network.dll",
"$QtDir\bin\Qt5Positioning.dll",
"$QtDir\bin\Qt5PrintSupport.dll",
"$QtDir\bin\Qt5Qml.dll",
"$QtDir\bin\Qt5Quick.dll",
"$QtDir\bin\Qt5QuickWidgets.dll",
"$QtDir\bin\Qt5Sql.dll",
"$QtDir\bin\Qt5Svg.dll",
"$QtDir\bin\Qt5WebChannel.dll",
"$QtDir\bin\Qt5WebEngine.dll",
"$QtDir\bin\Qt5WebEngineCore.dll",
"$QtDir\bin\Qt5WebEngineWidgets.dll",
"$QtDir\bin\Qt5Widgets.dll",
"$QtDir\bin\Qt5WinExtras.dll",
"$QtDir\bin\Qt5Xml.dll",
"$QtDir\bin\Qt5Multimedia.dll",
"$QtDir\bin\Qt5MultimediaWidgets.dll",
"$QtDir\bin\Qt5OpenGL.dll",
"$QtDir\bin\libEGL.dll",
"$QtDir\bin\libGLESv2.dll",
"$QtDir\bin\d3dcompiler_47.dll",
"$QtDir\bin\QtWebEngineProcess.exe"
)
foreach ($i in $FilesToCopy) {
write-host "copying: " $i " => " $OutDir -ForegroundColor Cyan
Copy-Item -Path $i -Destination $OutDir -Force
}
# qt resources
$FilesToCopy = @(
"$QtDir\resources\qtwebengine_resources.pak",
"$QtDir\resources\qtwebengine_resources_100p.pak",
"$QtDir\resources\qtwebengine_resources_200p.pak",
"$QtDir\resources\qtwebengine_devtools_resources.pak",
"$QtDir\resources\icudtl.dat"
)
$CopyDir = $OutDir + "\resources"
If(!(test-path $CopyDir)) { New-Item -ItemType directory -Path $CopyDir -Force }
foreach ($i in $FilesToCopy) {
write-host "copying: " $i " => " $CopyDir -ForegroundColor Cyan
Copy-Item -Path $i -Destination $CopyDir -Force
}
# qt qtwebengine_locales
$FilesToCopy = @(
"$QtDir\translations\qtwebengine_locales\en-US.pak"
)
$CopyDir = $OutDir + "\translations\qtwebengine_locales"
If(!(test-path $CopyDir)) { New-Item -ItemType directory -Path $CopyDir -Force }
foreach ($i in $FilesToCopy) {
write-host "copying: " $i " => " $CopyDir -ForegroundColor Cyan
Copy-Item -Path $i -Destination $CopyDir -Force
}
# qt imageformats
$FilesToCopy = @(
"$QtDir\plugins\imageformats\qgif.dll",
"$QtDir\plugins\imageformats\qico.dll",
"$QtDir\plugins\imageformats\qjpeg.dll",
"$QtDir\plugins\imageformats\qsvg.dll"
)
$CopyDir = $OutDir + "\imageformats"
If(!(test-path $CopyDir)) { New-Item -ItemType directory -Path $CopyDir -Force }
foreach ($i in $FilesToCopy) {
write-host "copying: " $i " => " $CopyDir -ForegroundColor Cyan
Copy-Item -Path $i -Destination $CopyDir -Force
}
# qt platform dll for windows
$CopyDir = $OutDir + "\platforms"
If(!(test-path $CopyDir)) { New-Item -ItemType directory -Path $CopyDir -Force }
$file = "$QtDir\plugins\platforms\qwindows.dll"
write-host "copying: " $file " => " $CopyDir -ForegroundColor Cyan
Copy-Item -Path $file -Destination $CopyDir -Force
# qt sql driver
$CopyDir = $OutDir + "\sqldrivers"
If(!(test-path $CopyDir)) { New-Item -ItemType directory -Path $CopyDir -Force }
$file = "$QtDir\plugins\sqldrivers\qsqlite.dll"
write-host "copying: " $file " => " $CopyDir -ForegroundColor Cyan
Copy-Item -Path $file -Destination $CopyDir -Force
$windeployqt = "$QtDir\bin\windeployqt.exe $OutDir\Jami.exe"
iex $windeployqt
# ringtones
$CopyDir = $OutDir + "\ringtones"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment