ronaldoussoren / py2app

py2app is a Python setuptools command which will allow you to make standalone Mac OS X application bundles and plugins from Python scripts.
Other
343 stars 36 forks source link

Add a way to drop ``NSMainNibFile`` from ``Info.plist`` #404

Open ronaldoussoren opened 2 years ago

ronaldoussoren commented 2 years ago

I'm building an PyObjC based app that doesn't use any nib files and that currently fails because the Info.plist file currently contains a definition of NSMainNibFile:

        <key>NSHumanReadableCopyright</key>
        <string>Copyright not specified</string>
        <key>NSMainNibFile</key>
        <string>MainMenu</string>
        <key>NSPrincipalClass</key>
        <string>NSApplication</string>

Because of this the application tries to open this Nib as launch time, which causes the startup to fail. Dropping the definition from Info.plist fixes this issue.

Needs to be optional because I don't know what might break if I drop this key unconditionally.