Returning anew to building a Mac OS app bundle. The following is my spec file.
===========================
# -*- mode: python -*-
a = Analysis([os.path.join(HOMEPATH,'support/_mountzlib.py'),
os.path.join(CONFIGDIR,'support/useUnicode.py'), '../ppqt.py'],
             
pathex=['/Users/original/Documents/Dprojects/PPQT/pyinstaller-1.6'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
          a.scripts,
          exclude_binaries=1,
          name=os.path.join('build/pyi.darwin/ppqt', 'ppqt'),
          debug=False,
          strip=None,
          upx=True,
          console=True )
coll = COLLECT( exe,
               a.binaries,
               a.zipfiles,
               a.datas,
               strip=None,
               upx=True,
               name=os.path.join('dist', 'ppqt'))
# add per http://www.pyinstaller.org/wiki/MacOsCompatibility
# to build an app bundle
import sys
if sys.platform.startswith("darwin"):
    app = BUNDLE(exe,
                 name=os.path.join('dist', 'PPQT.app'),
                 version=0.1)
=============================
This creates two things: dist/ppqt/* is everything needed (except for
qt_menu.nib, which I add manually) and if I double-click the file
dist/ppqt/ppqt the program comes up all correct. (hurrah! but...)

Also it creates dist/PPQT which is an app bundle with a generic app
icon -- but it is effectively empty. It has Contents/MacOS and
Contents/Resources folders but these are empty, so, the app does
nothing.

Please tell me what mistake I am making that the bundle is not complete?

I manually copied all of dist/ppqt/* into dist/PPQT/Contents/MacOS and
then the app seemed to launch but had very odd behavior so clearly
something was missing still.

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to