Add runtime hook for osx and windows builds. For osx produce 64bit binary.

This commit is contained in:
Martin Zibricky 2012-12-30 23:55:44 +01:00
parent 896370eaad
commit 9e50db27c0
2 changed files with 4 additions and 3 deletions

View File

@ -11,7 +11,7 @@ branch = %(projects)s/trunk
documentation = %(projects)s/documentation
macicon = %(here)s/OpenLP.icns
bundleinfo = %(here)s/Info.plist
hooks = resources/pyinstaller
hooks = %(here)s/../pyinstaller-hooks
dmg_background = %(here)s/DmgImageInstallBackground.png
[transifex]

View File

@ -332,13 +332,14 @@ class MacosxBuilder(object):
"""
self._print(u'Running PyInstaller...')
os.chdir(self.branch_path)
# arch -i386 ensures 32bit build is created.
pyinstaller = Popen(('arch', '-i386', self.python,
pyinstaller = Popen((self.python,
self.pyinstaller,
u'--noconfirm',
u'--windowed',
u'--noupx',
u'--additional-hooks-dir', self.hooks_path,
u'--runtime-hook', os.path.join(self.hooks_path,
'rthook_openlp_pyqt4.py'),
u'--log-level=ERROR',
u'-o', self.branch_path,
#u'-i', self.mac_icon,