|
|
@ -14,15 +14,14 @@ import re |
|
|
|
import shutil |
|
|
|
import sys |
|
|
|
|
|
|
|
from lib.util import print_error |
|
|
|
from lib.version import ELECTRUM_VERSION as version |
|
|
|
|
|
|
|
|
|
|
|
name = "Electrum" |
|
|
|
mainscript = 'electrum' |
|
|
|
|
|
|
|
if sys.version_info[:3] < (2, 6, 0): |
|
|
|
print_error("Error: " + name + " requires Python version >= 2.6.0...") |
|
|
|
if sys.version_info[:3] < (3, 4, 0): |
|
|
|
print("Error: " + name + " requires Python version >= 3.4.0...") |
|
|
|
sys.exit(1) |
|
|
|
|
|
|
|
if sys.platform == 'darwin': |
|
|
@ -37,7 +36,7 @@ if sys.platform == 'darwin': |
|
|
|
app=[mainscript], |
|
|
|
options=dict(py2app=dict(argv_emulation=False, |
|
|
|
includes=['PyQt4.QtCore', 'PyQt4.QtGui', 'PyQt4.QtWebKit', 'PyQt4.QtNetwork', 'sip'], |
|
|
|
packages=['lib', 'gui', 'plugins', 'packages'], |
|
|
|
packages=['lib', 'gui', 'plugins'], |
|
|
|
iconfile='electrum.icns', |
|
|
|
plist=plist, |
|
|
|
resources=["icons"])), |
|
|
@ -80,13 +79,12 @@ if sys.platform == 'darwin': |
|
|
|
qt_menu_location = re.sub('\n', '', qt_menu_location) |
|
|
|
|
|
|
|
if (len(qt_menu_location) == 0): |
|
|
|
print "Sorry couldn't find your qt_menu.nib this probably won't work" |
|
|
|
print("Sorry couldn't find your qt_menu.nib this probably won't work") |
|
|
|
else: |
|
|
|
print "Found your qib: " + qt_menu_location |
|
|
|
print("Found your qib: " + qt_menu_location) |
|
|
|
|
|
|
|
# Need to include a copy of qt_menu.nib |
|
|
|
shutil.copytree(qt_menu_location, resource + "qt_menu.nib") |
|
|
|
# Need to touch qt.conf to avoid loading 2 sets of Qt libraries |
|
|
|
fname = resource + "qt.conf" |
|
|
|
with file(fname, 'a'): |
|
|
|
os.utime(fname, None) |
|
|
|