Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set an icon for a .exe file

I've made a .exe file of a game I made in Python, but I'm not sure how to make that exe file have an icon, because it looks dull and boring. I want to somehow make the icon be a picture of an asteroid let's say, because I made the game asteroids. I used cx_freeze to compile it.

like image 204
Infamouslyuseless Avatar asked Oct 03 '22 19:10

Infamouslyuseless


1 Answers

Add it to the options in your setup.py file:

setup(
    ...
    options={
        "build_exe": {
            "icon": "path/to/icon.ico"
        }
    }
)
like image 127
Blender Avatar answered Oct 20 '22 13:10

Blender