From 162ed1fef55b7976a10e7cc45b9180c587b25171 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Sat, 21 Mar 2015 21:15:53 +0000 Subject: [PATCH] Disabled code signing for old Qt versions #4464 --- ext/toolchain/commands1.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ext/toolchain/commands1.py b/ext/toolchain/commands1.py index 31074cb0..3b234161 100644 --- a/ext/toolchain/commands1.py +++ b/ext/toolchain/commands1.py @@ -775,9 +775,16 @@ class InternalCommands: if sys.version_info < (2, 4): raise Exception("Python 2.4 or greater required.") - output = commands.getstatusoutput( - "macdeployqt %s/Synergy.app -verbose=2 -codesign='%s'" % ( - targetDir, self.macIdentity)) + (qMajor, qMinor, qRev) = self.getQmakeVersion() + if qMajor >= 5: + output = commands.getstatusoutput( + "macdeployqt %s/Synergy.app -verbose=2 -codesign='%s'" % ( + targetDir, self.macIdentity)) + else: + # no code signing available in old versions + output = commands.getstatusoutput( + "macdeployqt %s/Synergy.app -verbose=2" % ( + targetDir)) print output[1] if "ERROR" in output[1]: