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 Pick-to: 6.6 Change-Id: Ie1e0d0781305e1849df9ec0d5fb1c3ce6713a62b Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
0345f07dd1
commit
1eddd7add0
@ -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