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 <alexey.edelev@qt.io>
(cherry picked from commit a962f45adebbc6ea0c83bc9be3a50da245976a77)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tor Arne Vestbø 2024-06-25 12:33:55 +02:00 committed by Qt Cherry-pick Bot
parent a8ec0858a5
commit 2d6a3b89ef

View File

@ -671,6 +671,9 @@ void recursiveCopyAndDeploy(const QString &appBundlePath, const QList<QString> &
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"))) {