forked from openlp/openlp
68c1c86ac5
- added compatibility with the file extension on os x - started to work on the "open with" file event on os x
25 lines
882 B
Python
Executable File
25 lines
882 B
Python
Executable File
# -*- mode: python -*-
|
|
a = Analysis([os.path.join(HOMEPATH,'support/_mountzlib.py'), os.path.join(CONFIGDIR,'support/useUnicode.py'), '%(openlp_basedir)s/openlp.pyw'],
|
|
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')
|