I am trying to change the default python icon in my executable using pyinstaller. I'm trying this on Windows 10 and the GUI framework is pyqt5.
I have only managed to change the icon of the application (as seen in a file) but not the icons when you open the application (on the app's window).
These are the commands I used after a bit of online searching:
pyinstaller SSL_Configurator.py
pyinstaller --onefile -w --icon="favicon.ico" SSL_Configurator.py
pyinstaller --onefile -w --icon="favicon.ico" --paths=<C:\Users\Haylee\Desktop\python>\Lib\site-packages SSL_Configurator.py
What else should I include in order to get the icon to be displayed on the window as well?
thanks
After Alexander's comment, I found this answer that explains how to fix this. Basicaly you need to compile the image with the code.
new pyinstaller command would look like this (after following the answer linked):
pyinstaller --onefile -w --add-data "favicon.ico;." --icon="favicon.ico" --paths=<C:\Users\Haylee\Desktop\python>\Lib\site-packages SSL_Configurator.py