I am trying to create a console based exe using pyinstaller using the following command.
pyinstaller --onefile --console -i icon/app.ico main.py
or
pyinstaller --onefile --console --icon=./icon/app.ico main.py
Pyinstaller creates the exe but it does not embed the icon which I have provided. My icon file name is app.ico and is located inside a folder called icon. Please help about how to do it.