Fix frozen localisation (OSX)
Fixes Bitmessage#737
This commit is contained in:
parent
d7ff86705e
commit
e5675987a7
|
@ -1,18 +1,27 @@
|
||||||
import os
|
import os
|
||||||
|
from PyQt4 import QtCore
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
name = "Bitmessage"
|
name = "Bitmessage"
|
||||||
version = os.getenv("PYBITMESSAGEVERSION", "custom")
|
version = os.getenv("PYBITMESSAGEVERSION", "custom")
|
||||||
mainscript = ["bitmessagemain.py"]
|
mainscript = ["bitmessagemain.py"]
|
||||||
|
|
||||||
|
DATA_FILES = [
|
||||||
|
('', ['sslkeys', 'images']),
|
||||||
|
('bitmsghash', ['bitmsghash/bitmsghash.cl', 'bitmsghash/bitmsghash.so']),
|
||||||
|
('translations', glob('translations/*.qm')),
|
||||||
|
('translations', glob(str(QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.TranslationsPath)) + '/qt_??.qm')),
|
||||||
|
('translations', glob(str(QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.TranslationsPath)) + '/qt_??_??.qm')),
|
||||||
|
]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = name,
|
name = name,
|
||||||
version = version,
|
version = version,
|
||||||
app = mainscript,
|
app = mainscript,
|
||||||
|
data_files=DATA_FILES
|
||||||
setup_requires = ["py2app"],
|
setup_requires = ["py2app"],
|
||||||
options = dict(
|
options = dict(
|
||||||
py2app = dict(
|
py2app = dict(
|
||||||
resources = ["images", "translations", "bitmsghash", "sslkeys"],
|
|
||||||
includes = ['sip', 'PyQt4._qt'],
|
includes = ['sip', 'PyQt4._qt'],
|
||||||
iconfile = "images/bitmessage.icns"
|
iconfile = "images/bitmessage.icns"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user