2011-02-14 18:18:51 +00:00
|
|
|
# -*- mode: python -*-
|
2011-07-13 20:41:54 +00:00
|
|
|
a = Analysis([os.path.join(HOMEPATH,'support/_mountzlib.py'), os.path.join(CONFIGDIR,'support/useUnicode.py'), '%(openlp_basedir)s/openlp.pyw'],
|
2011-02-14 18:18:51 +00:00
|
|
|
pathex=['%(pyinstaller_basedir)s'], hookspath=['%(openlp_basedir)s/resources/pyinstaller'])
|
|
|
|
pyz = PYZ(a.pure)
|
|
|
|
exe = EXE(pyz,
|
|
|
|
a.scripts,
|
|
|
|
exclude_binaries=1,
|
|
|
|
name=os.path.join('build/pyi.darwin/openlp', 'openlp'),
|
|
|
|
debug=False,
|
|
|
|
strip=False,
|
|
|
|
upx=True,
|
|
|
|
console=1 )
|
|
|
|
coll = COLLECT( exe,
|
|
|
|
a.binaries,
|
|
|
|
a.zipfiles,
|
|
|
|
a.datas,
|
|
|
|
strip=False,
|
|
|
|
upx=True,
|
|
|
|
name=os.path.join('dist', 'openlp'))
|
|
|
|
import sys
|
|
|
|
if sys.platform.startswith("darwin"):
|
|
|
|
app = BUNDLE(coll,
|
|
|
|
name='%(openlp_appname)s.app',
|
|
|
|
version='%(openlp_version)s')
|