So I have this pyqt project and I want to build a osx.app dmg using pyinstaller
pyinstaller created the output in
dist/MyApplication.app
I can run it directly from terminal
cd dist
./MyApplication.app/Contents/MacOS/MyApplication
However, if I try to run the app bundle directly either with
open -a MyApplication.app
or
open .
# double click on MyApplication.app folder (appears just as MyApplication from finder)
It starts and then quits immediately
Now if I navigate to
$ cd ./Contents/MacOS/
and open a finder
$ open .
#then double click on MyApplication
it runs fine, but with a terminal windows opened in the background
Last login: Fri Mar 14 18:01:13 on ttys005
MyApplication/dist/MyApplication.app/Contents/MacOS/MyApplication ; exit;
MyApplication/dist/MyApplication.app/Contents/MacOS/MyApplication ; exit;
I use similar steps to build a windows exe without any issues (although there is no MyApplication.app concept in windows)
How do I diagnose this issue?
Thanks