openlp/resources/osx/openlp.spec.master
Matthias Hub 801a2b17c9 added initial version of build scripts used for os x to create an installable dmg image
to configure adjust the openlp.cfg with the correct environment values and then run make
 attention: it depends on pyinstaller (currently in the most recent trunk version)
modified openlp.pyw to include the plugin directory on os x
2011-02-14 19:18:51 +01:00

25 lines
881 B
Python
Executable File

# -*- mode: python -*-
a = Analysis([os.path.join(HOMEPATH,'support/_mountzlib.py'), os.path.join(HOMEPATH,'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')