mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 02:35:20 +00:00
python3: update setup-release.py
This commit is contained in:
parent
108d7d39f0
commit
a7209a1f77
1 changed files with 6 additions and 8 deletions
|
@ -14,15 +14,14 @@ import re
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from lib.util import print_error
|
|
||||||
from lib.version import ELECTRUM_VERSION as version
|
from lib.version import ELECTRUM_VERSION as version
|
||||||
|
|
||||||
|
|
||||||
name = "Electrum"
|
name = "Electrum"
|
||||||
mainscript = 'electrum'
|
mainscript = 'electrum'
|
||||||
|
|
||||||
if sys.version_info[:3] < (2, 6, 0):
|
if sys.version_info[:3] < (3, 4, 0):
|
||||||
print_error("Error: " + name + " requires Python version >= 2.6.0...")
|
print("Error: " + name + " requires Python version >= 3.4.0...")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
|
@ -37,7 +36,7 @@ if sys.platform == 'darwin':
|
||||||
app=[mainscript],
|
app=[mainscript],
|
||||||
options=dict(py2app=dict(argv_emulation=False,
|
options=dict(py2app=dict(argv_emulation=False,
|
||||||
includes=['PyQt4.QtCore', 'PyQt4.QtGui', 'PyQt4.QtWebKit', 'PyQt4.QtNetwork', 'sip'],
|
includes=['PyQt4.QtCore', 'PyQt4.QtGui', 'PyQt4.QtWebKit', 'PyQt4.QtNetwork', 'sip'],
|
||||||
packages=['lib', 'gui', 'plugins', 'packages'],
|
packages=['lib', 'gui', 'plugins'],
|
||||||
iconfile='electrum.icns',
|
iconfile='electrum.icns',
|
||||||
plist=plist,
|
plist=plist,
|
||||||
resources=["icons"])),
|
resources=["icons"])),
|
||||||
|
@ -80,13 +79,12 @@ if sys.platform == 'darwin':
|
||||||
qt_menu_location = re.sub('\n', '', qt_menu_location)
|
qt_menu_location = re.sub('\n', '', qt_menu_location)
|
||||||
|
|
||||||
if (len(qt_menu_location) == 0):
|
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:
|
else:
|
||||||
print "Found your qib: " + qt_menu_location
|
print("Found your qib: " + qt_menu_location)
|
||||||
|
|
||||||
# Need to include a copy of qt_menu.nib
|
# Need to include a copy of qt_menu.nib
|
||||||
shutil.copytree(qt_menu_location, resource + "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
|
# Need to touch qt.conf to avoid loading 2 sets of Qt libraries
|
||||||
fname = resource + "qt.conf"
|
fname = resource + "qt.conf"
|
||||||
with file(fname, 'a'):
|
os.utime(fname, None)
|
||||||
os.utime(fname, None)
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue