diff options
author | Michael Brüning <michael.bruning@qt.io> | 2020-03-26 16:11:56 +0100 |
---|---|---|
committer | Michael Brüning <michael.bruning@qt.io> | 2020-03-31 12:24:33 +0100 |
commit | 89ea26e93ee0410fb3a33b315d928fce05c3ef9e (patch) | |
tree | 4e2e9466f7124a23314d60593a06720493b8f103 /src/macdeployqt/macdeployqt/main.cpp | |
parent | ebb0380a4ef3410f5957b472203360fd67fe3b1d (diff) |
[macdeployqt] Add option to include secure timestamp when signing
Apple now requires the developer to include a secure timestamp in the
application's signature in order for notarization to succeed.
Add an option to do this to macdeployqt.
Change-Id: Ia884de80822661abcf65a287e4dc8429ec24b766
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/macdeployqt/macdeployqt/main.cpp')
-rw-r--r-- | src/macdeployqt/macdeployqt/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/macdeployqt/macdeployqt/main.cpp b/src/macdeployqt/macdeployqt/main.cpp index 3c13a6693..074b4a82f 100644 --- a/src/macdeployqt/macdeployqt/main.cpp +++ b/src/macdeployqt/macdeployqt/main.cpp @@ -53,6 +53,7 @@ int main(int argc, char **argv) qDebug() << " -always-overwrite : Copy files even if the target file exists"; qDebug() << " -codesign=<ident> : Run codesign with the given identity on all executables"; qDebug() << " -hardened-runtime : Enable Hardened Runtime when code signing"; + qDebug() << " -timestamp : Include a secure timestamp when code signing (requires internet connection)"; qDebug() << " -appstore-compliant: Skip deployment of components that use private API"; qDebug() << " -libpath=<path> : Add the given path to the library search path"; qDebug() << " -fs=<filesystem> : Set the filesystem used for the .dmg disk image (defaults to HFS+)"; @@ -100,6 +101,7 @@ int main(int argc, char **argv) extern bool hardenedRuntime; extern bool appstoreCompliant; extern bool deployFramework; + extern bool secureTimestamp; for (int i = 2; i < argc; ++i) { QByteArray argument = QByteArray(argv[i]); @@ -169,6 +171,9 @@ int main(int argc, char **argv) } else if (argument.startsWith(QByteArray("-hardened-runtime"))) { LogDebug() << "Argument found:" << argument; hardenedRuntime = true; + } else if (argument.startsWith(QByteArray("-timestamp"))) { + LogDebug() << "Argument found:" << argument; + secureTimestamp = true; } else if (argument == QByteArray("-appstore-compliant")) { LogDebug() << "Argument found:" << argument; appstoreCompliant = true; |