Pyinstaller adds icon, launches without console for Mac

This is a very short question. I created a Mac package using Pyinstaller and I am basically trying to add an icon to it. I am also trying to run the program without launching the terminal as the user has no interaction with the terminal. I am currently running the following in cmd when pyinstaller starts:

  

python pyinstaller.py --icon = group.ico --onefile --noconsole GESL_timetabler.py

  

I get a regular package (Unix Executable) and an application. However, only Unix Executable works and no processes when I double click the application.

In addition, neither the application nor the Unix executable has an icon image. I'm sure this is a trivial problem with my command for pyinstaller, but I am having a hard time understanding the error. Can someone help me fix the instructions above? Thank!

+3


source to share


2 answers


Try using instead --windowed

. As far as I can tell, they are the same thing, but it might do the trick.



As far as icons are concerned, I only got this to work with console windows. It just doesn't carry over to my main GUI window.

+1


source


You must have a group.icns

file for the application on Mac OS



0


source







All Articles