mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-31 09:44:50 +01:00
macdeployqt: Fix QLibraryInfo::LibraryExecutablesPath with Qt 5
This commit is contained in:
parent
cf2a0af3d9
commit
679b468618
8
3rdparty/macdeployqt/shared.cpp
vendored
8
3rdparty/macdeployqt/shared.cpp
vendored
@ -1427,9 +1427,11 @@ bool deployQmlImports(const QString &appBundlePath, DeploymentInfo deploymentInf
|
||||
LogNormal() << "QML module search path(s) is" << qmlImportPaths;
|
||||
|
||||
// Use qmlimportscanner from QLibraryInfo::LibraryExecutablesPath
|
||||
QString qmlImportScannerPath =
|
||||
QDir::cleanPath(QLibraryInfo::path(QLibraryInfo::LibraryExecutablesPath)
|
||||
+ "/qmlimportscanner");
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
QString qmlImportScannerPath = QDir::cleanPath(QLibraryInfo::path(QLibraryInfo::LibraryExecutablesPath) + "/qmlimportscanner");
|
||||
#else
|
||||
QString qmlImportScannerPath = QDir::cleanPath(QLibraryInfo::location(QLibraryInfo::LibraryExecutablesPath) + "/qmlimportscanner");
|
||||
#endif
|
||||
|
||||
// Fallback: Look relative to the macdeployqt binary
|
||||
if (!QFile(qmlImportScannerPath).exists())
|
||||
|
Loading…
x
Reference in New Issue
Block a user