1
0
mirror of https://gitlab.com/openlp/packaging.git synced 2024-12-22 21:12:50 +00:00

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 documentation = %(projects)s/documentation
macicon = %(here)s/OpenLP.icns macicon = %(here)s/OpenLP.icns
bundleinfo = %(here)s/Info.plist bundleinfo = %(here)s/Info.plist
hooks = resources/pyinstaller hooks = %(here)s/../pyinstaller-hooks
dmg_background = %(here)s/DmgImageInstallBackground.png dmg_background = %(here)s/DmgImageInstallBackground.png
[transifex] [transifex]

View File

@ -332,13 +332,14 @@ class MacosxBuilder(object):
""" """
self._print(u'Running PyInstaller...') self._print(u'Running PyInstaller...')
os.chdir(self.branch_path) os.chdir(self.branch_path)
# arch -i386 ensures 32bit build is created. pyinstaller = Popen((self.python,
pyinstaller = Popen(('arch', '-i386', self.python,
self.pyinstaller, self.pyinstaller,
u'--noconfirm', u'--noconfirm',
u'--windowed', u'--windowed',
u'--noupx', u'--noupx',
u'--additional-hooks-dir', self.hooks_path, 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'--log-level=ERROR',
u'-o', self.branch_path, u'-o', self.branch_path,
#u'-i', self.mac_icon, #u'-i', self.mac_icon,