From 9dd2dd4ab42c1164ac3c30a4d9e2fc6e6a9b39e5 Mon Sep 17 00:00:00 2001 From: Anu Aliyas Date: Wed, 6 Sep 2023 16:57:08 +0200 Subject: [PATCH] [windeployqt] Copy v8 context snapshot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Copy v8 context snapshot while creating package with windeployqt Fixes: QTBUG-116777 Change-Id: I707e1d147ebf0ba5ee63dd25218e23ac850efe45 Reviewed-by: Michael BrĂ¼ning (cherry picked from commit 8c468fc2ab3bdfb4f49eb9db10db0fb805d64180) Reviewed-by: Qt Cherry-pick Bot --- src/tools/windeployqt/main.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/tools/windeployqt/main.cpp b/src/tools/windeployqt/main.cpp index 2551040b71d..2d778753c76 100644 --- a/src/tools/windeployqt/main.cpp +++ b/src/tools/windeployqt/main.cpp @@ -1568,11 +1568,13 @@ static bool deployWebProcess(const QMap &qtpathsVariables, con static bool deployWebEngineCore(const QMap &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');