X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=scripts%2Fbuild%2Fmacosx_DeployApp.py;h=a46b5dca4184d59fe792d782761b121b7f810a48;hp=b0ad76083ba7e6c39120d504bc9168f6c7bfc9ab;hb=cf17ae38dd425697d0d8e22d50fb16f2bc821df6;hpb=cb6d11d8bcf4a277abdb865eeaed4d58825c6c3c diff --git a/scripts/build/macosx_DeployApp.py b/scripts/build/macosx_DeployApp.py index b0ad7608..a46b5dca 100755 --- a/scripts/build/macosx_DeployApp.py +++ b/scripts/build/macosx_DeployApp.py @@ -33,6 +33,8 @@ class InstallQt(object): self.needFrameworks = [] + self.findFrameworkPath() + executables = [self.executableDir + "/" + executable for executable in os.listdir(self.executableDir)] for executable in executables: @@ -42,12 +44,22 @@ class InstallQt(object): self.installFramework(framework) self.changeDylPath(executable) + def findFrameworkPath(self): + otoolProcess = Popen('qmake -query QT_INSTALL_LIBS', shell=True, stdout=PIPE, stderr=PIPE) + self.sourceFrameworkPath = otoolProcess.stdout.read().strip() + otoolProcess.stdout.close() + otoolProcess.wait() + + def installFramework(self, framework): try: os.mkdir(self.frameworkDir) except: pass + if not framework.startswith('/'): + framework = "%s/%s" % (self.sourceFrameworkPath, framework) + # Copy Framework os.system('cp -R "%s" "%s"' % (framework, self.frameworkDir))