pyinstaller: icon not visable on desktop?
nospam_2021 at efbe.prima.de
nospam_2021 at efbe.prima.de
Wed Nov 24 03:40:41 EST 2021
Am 23.11.21 um 21:44 schrieb Ulli Horlacher:
> When I compile a python program with pyinstaller, I get an executable:
>
> pyinstaller --onefile --icon fex.ico fextasy.py
>
> But the executables icon is only visable within the windows file browser,
> not on the desktop:
>
> https://fex.flupp.org/fop/V2ioMZcl/X-20211123213712.png
>
I had to postprocess the exe with resourcehacker freeware:
http://angusj.com/resourcehacker/
"C:\Program Files (x86)\Resource Hacker\ResourceHacker.exe" -open
skydiaA.exe -save skydia.exe -action addskip -res Mainicon.ico -mask
ICONGROUP,MAINICON,
creates skydia.exe with the "wish icon".
skydiaA.exe has the default icon.
HTH
Frank
More information about the Python-list
mailing list