Change icon for cx_Freeze script

I was just wondering if it is possible to change the program icon for the cx_Freeze script, I looked around, but could not find anything.

+8
source share
1 answer

Just add icon="icon.ico"in Executable()as follows:

from cx_Freeze import setup, Executable

target = Executable(
    script="your_program.py",
    base="Win32GUI",
    compress=False,
    copyDependentFiles=True,
    appendScriptToExe=True,
    appendScriptToLibrary=False,
    icon="icon.ico"
    )

setup(
    name="name",
    version="1.0",
    description="the description",
    author="the author",
    options={"build_exe": options},
    executables=[target]
    )
+19
source

All Articles