mirror of
https://gitlab.com/openlp/packaging.git
synced 2024-12-22 13:02:50 +00:00
Changes for Qt5
bzr-revno: 28
This commit is contained in:
commit
a2a5def091
@ -116,8 +116,6 @@
|
|||||||
<false/>
|
<false/>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>LSBackgroundOnly</key>
|
|
||||||
<true/>
|
|
||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>CFBundleHelpBookFolder</key>
|
<key>CFBundleHelpBookFolder</key>
|
||||||
|
@ -329,7 +329,6 @@ class MacosxBuilder(object):
|
|||||||
'--windowed',
|
'--windowed',
|
||||||
'--noupx',
|
'--noupx',
|
||||||
'--additional-hooks-dir', self.hooks_path,
|
'--additional-hooks-dir', self.hooks_path,
|
||||||
'--runtime-hook', os.path.join(self.hooks_path, 'rthook_openlp_pyqt4.py'),
|
|
||||||
'--runtime-hook', os.path.join(self.hooks_path, 'rthook_ssl.py'),
|
'--runtime-hook', os.path.join(self.hooks_path, 'rthook_ssl.py'),
|
||||||
'-i', self.mac_icon,
|
'-i', self.mac_icon,
|
||||||
'-p', self.work_path,
|
'-p', self.work_path,
|
||||||
@ -341,11 +340,9 @@ class MacosxBuilder(object):
|
|||||||
cmd.append('--log-level=DEBUG')
|
cmd.append('--log-level=DEBUG')
|
||||||
if self.args.devel:
|
if self.args.devel:
|
||||||
cmd.append('-d')
|
cmd.append('-d')
|
||||||
pyinstaller = Popen(cmd, stdout=PIPE)
|
pyinstaller = Popen(cmd)
|
||||||
output = pyinstaller.communicate()[0]
|
|
||||||
code = pyinstaller.wait()
|
code = pyinstaller.wait()
|
||||||
if code != 0:
|
if code != 0:
|
||||||
self._print(output)
|
|
||||||
raise Exception('Error running PyInstaller')
|
raise Exception('Error running PyInstaller')
|
||||||
|
|
||||||
def write_version_file(self):
|
def write_version_file(self):
|
||||||
|
@ -20,6 +20,6 @@
|
|||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
hiddenimports = ['openlp.core.ui.media.phononplayer',
|
hiddenimports = ['openlp.core.ui.media.systemplayer',
|
||||||
'openlp.core.ui.media.vlcplayer',
|
'openlp.core.ui.media.vlcplayer',
|
||||||
'openlp.core.ui.media.webkitplayer']
|
'openlp.core.ui.media.webkitplayer']
|
||||||
|
@ -1,43 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
# OpenLP - Open Source Lyrics Projection #
|
|
||||||
# --------------------------------------------------------------------------- #
|
|
||||||
# Copyright (c) 2008-2015 OpenLP Developers #
|
|
||||||
# --------------------------------------------------------------------------- #
|
|
||||||
# This program is free software; you can redistribute it and/or modify it #
|
|
||||||
# under the terms of the GNU General Public License as published by the Free #
|
|
||||||
# Software Foundation; version 2 of the License. #
|
|
||||||
# #
|
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT #
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or #
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for #
|
|
||||||
# more details. #
|
|
||||||
# #
|
|
||||||
# You should have received a copy of the GNU General Public License along #
|
|
||||||
# with this program; if not, write to the Free Software Foundation, Inc., 59 #
|
|
||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
# PyQt4 supports two different APIs: version 1 (default on Python 2) and
|
|
||||||
# version 2 (default on Python 3). For OpenLP we want to use the version 2 API
|
|
||||||
# with Python 2.
|
|
||||||
#
|
|
||||||
# The v2 API has to be set before any import of PyQt4 modules.
|
|
||||||
# However, the executable created by PyInstaller overrides qt_plugins directory
|
|
||||||
# (it uses PyQt4) before any code from OpenLP gets executed.
|
|
||||||
#
|
|
||||||
# The following code is bundled with the created executable and executed
|
|
||||||
# before any other code.
|
|
||||||
|
|
||||||
import sip
|
|
||||||
|
|
||||||
sip.setapi('QDate', 2)
|
|
||||||
sip.setapi('QDateTime', 2)
|
|
||||||
sip.setapi('QString', 2)
|
|
||||||
sip.setapi('QTextStream', 2)
|
|
||||||
sip.setapi('QTime', 2)
|
|
||||||
sip.setapi('QUrl', 2)
|
|
||||||
sip.setapi('QVariant', 2)
|
|
@ -296,7 +296,6 @@ class WindowsBuilder(object):
|
|||||||
'--windowed',
|
'--windowed',
|
||||||
'--noupx',
|
'--noupx',
|
||||||
'--additional-hooks-dir', self.hooks_path,
|
'--additional-hooks-dir', self.hooks_path,
|
||||||
'--runtime-hook', os.path.join(self.hooks_path, 'rthook_openlp_pyqt4.py'),
|
|
||||||
'--distpath', self.dist_path_pyinst_arg,
|
'--distpath', self.dist_path_pyinst_arg,
|
||||||
'-i', self.win32_icon,
|
'-i', self.win32_icon,
|
||||||
'-p', self.branch_path,
|
'-p', self.branch_path,
|
||||||
@ -306,11 +305,9 @@ class WindowsBuilder(object):
|
|||||||
cmd.append('--log-level=ERROR')
|
cmd.append('--log-level=ERROR')
|
||||||
else:
|
else:
|
||||||
cmd.append('--log-level=DEBUG')
|
cmd.append('--log-level=DEBUG')
|
||||||
pyinstaller = Popen(cmd, stdout=PIPE)
|
pyinstaller = Popen(cmd)
|
||||||
output = pyinstaller.communicate()[0]
|
|
||||||
code = pyinstaller.wait()
|
code = pyinstaller.wait()
|
||||||
if code != 0:
|
if code != 0:
|
||||||
self._print(output)
|
|
||||||
raise Exception('Error running PyInstaller')
|
raise Exception('Error running PyInstaller')
|
||||||
|
|
||||||
def write_version_file(self):
|
def write_version_file(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user