Adjust webengine resources deployment

In case of debug build install debug resources.
The change reflects qtwebengine's deployment change:
qtwebengine/76d317c082b2492cc1fe1fcf2afad26be5369d3f

Task-number: QTBUG-131897
Pick-to: 6.8
Change-Id: I58fa8a36e88369dd29f03fb16060b88ba08abd86
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit d531d31e1db9a84a907c10f89b557c744100ab94)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Michal Klocek 2025-04-28 10:01:14 +02:00 committed by Qt Cherry-pick Bot
parent 500246d988
commit 77a10188a5

View File

@ -1864,13 +1864,20 @@ static bool deployWebEngineCore(const QMap<QString, QString> &qtpathsVariables,
const PluginInformation &pluginInfo, const Options &options,
bool isDebug, QString *errorMessage)
{
static const char *installDataFiles[] = { "icudtl.dat",
static const char *installDataFilesRelease[] = { "icudtl.dat",
"qtwebengine_devtools_resources.pak",
"qtwebengine_resources.pak",
"qtwebengine_resources_100p.pak",
"qtwebengine_resources_200p.pak",
isDebug ? "v8_context_snapshot.debug.bin"
: "v8_context_snapshot.bin" };
"v8_context_snapshot.bin" };
static const char *installDataFilesDebug[] = { "icudtl.dat",
"qtwebengine_devtools_resources.debug.pak",
"qtwebengine_resources.debug.pak",
"qtwebengine_resources_100p.debug.pak",
"qtwebengine_resources_200p.debug.pak",
"v8_context_snapshot.debug.bin" };
static const auto &installDataFiles = isDebug ? installDataFilesDebug : installDataFilesRelease;
QByteArray webEngineProcessName(webEngineProcessC);
if (isDebug && platformHasDebugSuffix(options.platform))
webEngineProcessName.append('d');