macdeployqt: Fix codesigning with @loader_path
When the -executable parameter is specified, macdeployqt uses @loader_path instead of @rpath. This case was not handled in getBinaryDependencies() used for the code signing. Fixes: QTBUG-118075 Change-Id: Ie1e0d0781305e1849df9ec0d5fb1c3ce6713a62b Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 1eddd7add027d05cec2470a5209f46809e690478) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
1c359e6ea1
commit
8863444053
@ -598,6 +598,10 @@ QStringList getBinaryDependencies(const QString executablePath,
|
||||
QString binary = QDir::cleanPath(executablePath + trimmedLine.mid(QStringLiteral("@executable_path/").length()));
|
||||
if (binary != path)
|
||||
binaries.append(binary);
|
||||
} else if (trimmedLine.startsWith("@loader_path/")) {
|
||||
QString binary = QDir::cleanPath(QFileInfo(path).path() + "/" + trimmedLine.mid(QStringLiteral("@loader_path/").length()));
|
||||
if (binary != path)
|
||||
binaries.append(binary);
|
||||
} else if (trimmedLine.startsWith("@rpath/")) {
|
||||
if (!rpathsLoaded) {
|
||||
rpaths = getBinaryRPaths(path, true, executablePath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user