mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-31 09:44:50 +01:00
macdeployqt: Formatting
This commit is contained in:
parent
b071a4df70
commit
42d414797a
17
3rdparty/macdeployqt/shared.cpp
vendored
17
3rdparty/macdeployqt/shared.cpp
vendored
@ -197,22 +197,19 @@ OtoolInfo findDependencyInfo(const QString &binaryPath)
|
||||
}
|
||||
|
||||
outputLines.removeFirst(); // remove line containing the binary path
|
||||
|
||||
if (binaryPath.contains(".framework/") || binaryPath.endsWith(".dylib")) {
|
||||
const auto match = regexp.match(outputLines.first());
|
||||
if (match.hasMatch()) {
|
||||
QString installname = match.captured(1);
|
||||
if (QFileInfo(binaryPath).fileName() == QFileInfo(installname).fileName()) {
|
||||
info.installName = installname;
|
||||
info.compatibilityVersion = QVersionNumber::fromString(match.captured(2));
|
||||
info.currentVersion = QVersionNumber::fromString(match.captured(3));
|
||||
outputLines.removeFirst();
|
||||
info.installName = installname;
|
||||
info.compatibilityVersion = QVersionNumber::fromString(match.captured(2));
|
||||
info.currentVersion = QVersionNumber::fromString(match.captured(3));
|
||||
outputLines.removeFirst();
|
||||
} else {
|
||||
info.installName = binaryPath;
|
||||
}
|
||||
else {
|
||||
info.installName = binaryPath;
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
LogError() << "Could not parse otool output line:" << outputLines.first();
|
||||
outputLines.removeFirst();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user