From 2d6a3b89efebe92b62df6eff169e49c106dbc4bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 25 Jun 2024 12:33:55 +0200 Subject: [PATCH] macdeployqt: Skip qrc files when deploying QML modules The logic for deploying QML modules copies the entire QML module directory, which includes build artifacts such as qrc files. Pick-to: 6.7 6.5 6.2 Change-Id: I7fa5c4c5247d1e2a04b83bb8f897cb58e417dded Reviewed-by: Alexey Edelev (cherry picked from commit a962f45adebbc6ea0c83bc9be3a50da245976a77) Reviewed-by: Qt Cherry-pick Bot --- src/tools/macdeployqt/shared/shared.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools/macdeployqt/shared/shared.cpp b/src/tools/macdeployqt/shared/shared.cpp index 8d75cd705cc..a94b21668ea 100644 --- a/src/tools/macdeployqt/shared/shared.cpp +++ b/src/tools/macdeployqt/shared/shared.cpp @@ -671,6 +671,9 @@ void recursiveCopyAndDeploy(const QString &appBundlePath, const QList & if (file.endsWith("_debug.dylib")) continue; // Skip debug versions + if (file.endsWith(".qrc")) + continue; + const QString fileSourcePath = sourcePath + u'/' + file; if (file.endsWith(QStringLiteral(".dylib"))) {