[windeployqt] Copy v8 context snapshot

- Copy v8 context snapshot while creating package with windeployqt

Fixes: QTBUG-116777
Change-Id: I707e1d147ebf0ba5ee63dd25218e23ac850efe45
Pick-to: 6.6
Reviewed-by: Michael Brüning <michael.bruning@qt.io>
This commit is contained in:
Anu Aliyas 2023-09-06 16:57:08 +02:00
parent c00b17de66
commit 8c468fc2ab

View File

@ -1581,11 +1581,13 @@ static bool deployWebProcess(const QMap<QString, QString> &qtpathsVariables, con
static bool deployWebEngineCore(const QMap<QString, QString> &qtpathsVariables,
const Options &options, bool isDebug, QString *errorMessage)
{
static const char *installDataFiles[] = {"icudtl.dat",
"qtwebengine_devtools_resources.pak",
"qtwebengine_resources.pak",
"qtwebengine_resources_100p.pak",
"qtwebengine_resources_200p.pak"};
static const char *installDataFiles[] = { "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" };
QByteArray webEngineProcessName(webEngineProcessC);
if (isDebug && platformHasDebugSuffix(options.platform))
webEngineProcessName.append('d');