projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated packaging scripts for Mac OS X
[quassel.git]
/
scripts
/
build
/
macosx_DeployApp.py
diff --git
a/scripts/build/macosx_DeployApp.py
b/scripts/build/macosx_DeployApp.py
index
b0ad760
..
a46b5dc
100755
(executable)
--- a/
scripts/build/macosx_DeployApp.py
+++ b/
scripts/build/macosx_DeployApp.py
@@
-33,6
+33,8
@@
class InstallQt(object):
self.needFrameworks = []
self.needFrameworks = []
+ self.findFrameworkPath()
+
executables = [self.executableDir + "/" + executable for executable in os.listdir(self.executableDir)]
for executable in executables:
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)
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
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))
# Copy Framework
os.system('cp -R "%s" "%s"' % (framework, self.frameworkDir))