Skip to content

Instantly share code, notes, and snippets.

@muammar
Created April 17, 2017 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muammar/56b6826a6e16eb026a0d693c93b313d5 to your computer and use it in GitHub Desktop.
Save muammar/56b6826a6e16eb026a0d693c93b313d5 to your computer and use it in GitHub Desktop.
qt5.patch
--- a/qttools/src/macdeployqt/shared/shared.cpp
+++ b/qttools/src/macdeployqt/shared/shared.cpp
@@ -803,6 +803,10 @@ void changeInstallName(const QString &bundlePath, const FrameworkInfo &framework
deployedInstallName = framework.deployedInstallName;
}
changeInstallName(framework.installName, deployedInstallName, binary);
+ QString canonicalInstallName = QFileInfo(framework.installName).canonicalFilePath();
+ if (canonicalInstallName != framework.installName) {
+ changeInstallName(canonicalInstallName, deployedInstallName, binary);
+ }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment