I've been starting to learn python recently and have spent several hours trying to find a way to set a custom icon for the application however all the results that I find are either outdated or incompatible with Mac. Is there a working example for all platforms that I can use? A custom GUI is not on the top of priorities but if there is a documentation that I haven't found I would be very grateful if someone could show me.
Edit:
Just a quick summary of Jonah very kindly provided:
- Download get-pip.py here
- Run get-pip.py from terminal using: "python get-pip.py"
Install py2app with: "pip install -U py2app"
Note!
This may not apply to everyone but I have to use: "pip3 install -U py2app"
Use and download configuration similar to this
- Convert your file to a .icns at this site
- Set the filepaths in the setup.py according to your .py script and your icns image.
- Run the setup.py with: "python setup.py py2app"
- Locate your app in the dist folder that was created :)