Search code examples
pythonmacospyinstaller

My mac app I made with pyinstaller opens and then closes immediately but then reopens 30 seconds later


I have made a macOS app using pyinstaller... It works but when opening the app, it opens then closes immediately and then reopens 30 seconds later.

To create this app I typed this command:

pyinstaller -Fw --icon=AppIcon.icns Converter.py

These are the files that my app was created with:

enter image description here

Here is the code: https://github.com/TheLostProgrammer/Video_Downloader/blob/main/Video_Downloader.py

I don't know if it is a problem with the command but I am puzzled to why this is happening. Can someone please explain what has happened?


Solution

  • So I found out after reading through the documentation that I typed in the command wrong. Here is the new command I used pyinstaller -w --icon=AppIcon.icns VideoDownloader.py. Works like a charm.