Skip to content

Commit

Permalink
Patch macdeployqt fix conan-io#5487
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinDelille committed May 9, 2021
1 parent 3ef9ab7 commit 7e599d6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/qt/5.x.x/conandata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ patches:
base_path: "qt5/qtbase"
- patch_file: "patches/c72097e.diff"
base_path: "qt5/qtwebengine"
- patch_file: "patches/fix-macdeployqt.diff"
base_path: "qt5/qttools"
21 changes: 21 additions & 0 deletions recipes/qt/5.x.x/patches/fix-macdeployqt.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/src/macdeployqt/macdeployqt/main.cpp b/src/macdeployqt/macdeployqt/main.cpp
index 0f9164053..5d9e40e36 100644
--- a/src/macdeployqt/macdeployqt/main.cpp
+++ b/src/macdeployqt/macdeployqt/main.cpp
@@ -27,6 +27,7 @@
****************************************************************************/
#include <QCoreApplication>
#include <QDir>
+#include <QLibraryInfo>

#include "../shared/shared.h"

@@ -236,7 +237,7 @@ int main(int argc, char **argv)
}

if (plugins && !deploymentInfo.qtPath.isEmpty()) {
- deploymentInfo.pluginPath = deploymentInfo.qtPath + "/plugins";
+ deploymentInfo.pluginPath = QLibraryInfo::location(QLibraryInfo::PluginsPath);
LogNormal();
deployPlugins(appBundlePath, deploymentInfo, useDebugLibs);
createQtConf(appBundlePath);

0 comments on commit 7e599d6

Please sign in to comment.