diff options
author | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2014-10-14 14:08:40 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2014-10-14 14:08:40 +0200 |
commit | e69d4a9fd917d332c490a50e98b9802183afc478 (patch) | |
tree | 5ac0115bc62bb5f84baa3f2b1b35a75ffe702b7d /src/macdeployqt/macdeployqt/main.cpp | |
parent | d55407822eefbc05f7d8bb44c53b057332b5b399 (diff) | |
parent | a1751e3d586f1ebfb1770392e52d7c1648a7406f (diff) |
Merge remote-tracking branch 'origin/5.3' into 5.4
Conflicts:
src/assistant/assistant/mainwindow.cpp
src/linguist/linguist/mainwindow.cpp
src/qdbus/qdbusviewer/qdbusviewer.cpp
Change-Id: I1f5524ab747be561ed0b13d8b1fd8cb51a890363
Diffstat (limited to 'src/macdeployqt/macdeployqt/main.cpp')
-rw-r--r-- | src/macdeployqt/macdeployqt/main.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/macdeployqt/macdeployqt/main.cpp b/src/macdeployqt/macdeployqt/main.cpp index 865a22f03..0f38cdfaf 100644 --- a/src/macdeployqt/macdeployqt/main.cpp +++ b/src/macdeployqt/macdeployqt/main.cpp @@ -51,6 +51,7 @@ int main(int argc, char **argv) qDebug() << " -executable=<path> : Let the given executable use the deployed frameworks too"; qDebug() << " -qmldir=<path> : Deploy imports used by .qml files in the given path"; qDebug() << " -always-overwrite : Copy files enven if the target file exists"; + qDebug() << " -codesign=<ident> : Run codesing with the given identity on all executables"; qDebug() << ""; qDebug() << "macdeployqt takes an application bundle as input and makes it"; qDebug() << "self-contained by copying in the Qt frameworks and plugins that"; @@ -81,6 +82,8 @@ int main(int argc, char **argv) extern bool alwaysOwerwriteEnabled; QStringList additionalExecutables; QStringList qmlDirs; + extern bool runCodesign; + extern QString codesignIdentiy; for (int i = 2; i < argc; ++i) { QByteArray argument = QByteArray(argv[i]); @@ -123,6 +126,15 @@ int main(int argc, char **argv) } else if (argument == QByteArray("-always-overwrite")) { LogDebug() << "Argument found:" << argument; alwaysOwerwriteEnabled = true; + } else if (argument.startsWith(QByteArray("-codesign"))) { + LogDebug() << "Argument found:" << argument; + int index = argument.indexOf("="); + if (index < 0 || index >= argument.size()) { + LogError() << "Missing code signing identity"; + } else { + runCodesign = true; + codesignIdentiy = argument.mid(index+1); + } } else if (argument.startsWith("-")) { LogError() << "Unknown argument" << argument << "\n"; return 0; @@ -149,6 +161,9 @@ int main(int argc, char **argv) if (!qmlDirs.isEmpty()) deployQmlImports(appBundlePath, qmlDirs); + if (runCodesign) + codesign(codesignIdentiy, appBundlePath); + if (dmg) { LogNormal(); createDiskImage(appBundlePath); |