Remove more macOS specific code
This commit is contained in:
@@ -177,7 +177,8 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
// Update deploymentInfo.deployedFrameworks - the QML imports
|
// Update deploymentInfo.deployedFrameworks - the QML imports
|
||||||
// may have brought in extra frameworks as dependencies.
|
// may have brought in extra frameworks as dependencies.
|
||||||
deploymentInfo.deployedFrameworks += findAppFrameworkNames(appBundlePath);
|
// deploymentInfo.deployedFrameworks += findAppFrameworkNames(appBundlePath);
|
||||||
|
deploymentInfo.deployedFrameworks += findAppLibraries(appBundlePath);
|
||||||
deploymentInfo.deployedFrameworks = deploymentInfo.deployedFrameworks.toSet().toList();
|
deploymentInfo.deployedFrameworks = deploymentInfo.deployedFrameworks.toSet().toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-21
@@ -131,7 +131,7 @@ bool linkFilePrintStatus(const QString &file, const QString &link)
|
|||||||
if (QFile(link).symLinkTarget().isEmpty())
|
if (QFile(link).symLinkTarget().isEmpty())
|
||||||
LogError() << link << "exists but it's a file.";
|
LogError() << link << "exists but it's a file.";
|
||||||
else
|
else
|
||||||
LogNormal() << "Symlink exists, skipping:" << link;
|
qDebug() << "Symlink exists, skipping:" << link;
|
||||||
return false;
|
return false;
|
||||||
} else if (QFile::link(file, link)) {
|
} else if (QFile::link(file, link)) {
|
||||||
LogNormal() << " symlink" << link;
|
LogNormal() << " symlink" << link;
|
||||||
@@ -315,24 +315,6 @@ QString findAppBinary(const QString &appBundlePath)
|
|||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList findAppFrameworkNames(const QString &appBundlePath)
|
|
||||||
{
|
|
||||||
QStringList frameworks;
|
|
||||||
|
|
||||||
// populate the frameworks list with QtFoo.framework etc,
|
|
||||||
// as found in /Contents/Frameworks/
|
|
||||||
QString searchPath = appBundlePath + bundleFrameworkDirectory;
|
|
||||||
QDirIterator iter(searchPath, QStringList() << QString::fromLatin1("*.framework"), QDir::Dirs);
|
|
||||||
while (iter.hasNext()) {
|
|
||||||
iter.next();
|
|
||||||
frameworks << iter.fileInfo().fileName();
|
|
||||||
}
|
|
||||||
|
|
||||||
return frameworks;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
QStringList findAppLibraries(const QString &appBundlePath)
|
QStringList findAppLibraries(const QString &appBundlePath)
|
||||||
{
|
{
|
||||||
QStringList result;
|
QStringList result;
|
||||||
@@ -606,7 +588,7 @@ void runStrip(const QString &binaryPath)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (strip.readAllStandardError().contains("Not enough room for program headers")) {
|
if (strip.readAllStandardError().contains("Not enough room for program headers")) {
|
||||||
LogError() << QFileInfo(binaryPath).completeBaseName() << "already stripped.";
|
qDebug() << QFileInfo(binaryPath).completeBaseName() << "already stripped.";
|
||||||
} else {
|
} else {
|
||||||
LogError() << "Error stripping" << QFileInfo(binaryPath).completeBaseName() << ":" << strip.readAllStandardError();
|
LogError() << "Error stripping" << QFileInfo(binaryPath).completeBaseName() << ":" << strip.readAllStandardError();
|
||||||
LogError() << "Error stripping" << QFileInfo(binaryPath).completeBaseName() << ":" << strip.readAllStandardOutput();
|
LogError() << "Error stripping" << QFileInfo(binaryPath).completeBaseName() << ":" << strip.readAllStandardOutput();
|
||||||
@@ -648,7 +630,7 @@ DeploymentInfo deployQtFrameworks(QList<FrameworkInfo> frameworks,
|
|||||||
|
|
||||||
|
|
||||||
if (framework.frameworkDirectory.startsWith(bundlePath)) {
|
if (framework.frameworkDirectory.startsWith(bundlePath)) {
|
||||||
LogError() << framework.frameworkName << "already deployed, skipping.";
|
qDebug() << framework.frameworkName << "already deployed, skipping.";
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -123,8 +123,7 @@ void changeInstallName(const QString &oldName, const QString &newName, const QSt
|
|||||||
void runStrip(const QString &binaryPath);
|
void runStrip(const QString &binaryPath);
|
||||||
void stripAppBinary(const QString &bundlePath);
|
void stripAppBinary(const QString &bundlePath);
|
||||||
QString findAppBinary(const QString &appBundlePath);
|
QString findAppBinary(const QString &appBundlePath);
|
||||||
QStringList findAppFrameworkNames(const QString &appBundlePath);
|
QStringList findAppLibraries(const QString &appBundlePath);
|
||||||
QStringList findAppFrameworkPaths(const QString &appBundlePath);
|
|
||||||
void createAppImage(const QString &appBundlePath);
|
void createAppImage(const QString &appBundlePath);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user