fixed: mac sign failing silently
This commit is contained in:
parent
2dad0a7c94
commit
ce8630a5c6
|
@ -469,6 +469,9 @@ class InternalCommands:
|
||||||
err = os.system(bin)
|
err = os.system(bin)
|
||||||
self.restore_chdir()
|
self.restore_chdir()
|
||||||
|
|
||||||
|
if err != 0:
|
||||||
|
raise Exception(bin + " failed with error: " + str(err))
|
||||||
|
|
||||||
(qMajor, qMinor, qRev) = self.getQmakeVersion()
|
(qMajor, qMinor, qRev) = self.getQmakeVersion()
|
||||||
if qMajor <= 4:
|
if qMajor <= 4:
|
||||||
frameworkRootDir = "/Library/Frameworks"
|
frameworkRootDir = "/Library/Frameworks"
|
||||||
|
@ -477,15 +480,13 @@ class InternalCommands:
|
||||||
frameworkRootDir = "/Developer/Qt5.2.1/5.2.1/clang_64/lib"
|
frameworkRootDir = "/Developer/Qt5.2.1/5.2.1/clang_64/lib"
|
||||||
|
|
||||||
# copy the missing Info.plist files for the frameworks.
|
# copy the missing Info.plist files for the frameworks.
|
||||||
shutil.copy(frameworkRootDir + "/QtCore.framework/Contents/Info.plist",
|
target = dir + "/Synergy.app/Contents/Frameworks"
|
||||||
dir + "/Synergy.app/Contents/Frameworks/QtCore.framework/Resources/")
|
for root, dirs, files in os.walk(target):
|
||||||
shutil.copy(frameworkRootDir + "/QtGui.framework/Contents/Info.plist",
|
for dir in dirs:
|
||||||
dir + "/Synergy.app/Contents/Frameworks/QtGui.framework/Resources/")
|
if dir.startswith("Qt"):
|
||||||
shutil.copy(frameworkRootDir + "/QtNetwork.framework/Contents/Info.plist",
|
shutil.copy(
|
||||||
dir + "/Synergy.app/Contents/Frameworks/QtNetwork.framework/Resources/")
|
frameworkRootDir + "/" + dir + "/Contents/Info.plist",
|
||||||
|
target + "/" + dir + "/Resources/")
|
||||||
if err != 0:
|
|
||||||
raise Exception(bin + " failed with error: " + str(err))
|
|
||||||
|
|
||||||
def signmac(self, identity):
|
def signmac(self, identity):
|
||||||
self.try_chdir("bin")
|
self.try_chdir("bin")
|
||||||
|
@ -493,6 +494,9 @@ class InternalCommands:
|
||||||
'codesign --deep -fs "' + identity + '" Synergy.app')
|
'codesign --deep -fs "' + identity + '" Synergy.app')
|
||||||
self.restore_chdir()
|
self.restore_chdir()
|
||||||
|
|
||||||
|
if err != 0:
|
||||||
|
raise Exception("codesign failed with error: " + str(err))
|
||||||
|
|
||||||
def signwin(self, pfx, pwdFile, dist):
|
def signwin(self, pfx, pwdFile, dist):
|
||||||
generator = self.getGeneratorFromConfig().cmakeName
|
generator = self.getGeneratorFromConfig().cmakeName
|
||||||
if not generator.startswith('Visual Studio'):
|
if not generator.startswith('Visual Studio'):
|
||||||
|
@ -522,6 +526,9 @@ class InternalCommands:
|
||||||
file)
|
file)
|
||||||
self.restore_chdir()
|
self.restore_chdir()
|
||||||
|
|
||||||
|
if err != 0:
|
||||||
|
raise Exception("signtool failed with error: " + str(err))
|
||||||
|
|
||||||
def runBuildCommand(self, cmd, target):
|
def runBuildCommand(self, cmd, target):
|
||||||
|
|
||||||
self.try_chdir(self.getBuildDir(target))
|
self.try_chdir(self.getBuildDir(target))
|
||||||
|
|
Loading…
Reference in New Issue