[英]Building an executable using pyinstaller, with windows default executable icon
I just need to build an executable using pyinstaller, with the default windows .exe icon.我只需要使用 pyinstaller 构建一个可执行文件,使用默认的 windows .exe 图标。 Or a way to remove/set default windows icon after compiling.
或者在编译后删除/设置默认窗口图标的方法。
Thank you.谢谢你。
I don't think you can just use windows default .exe icon, but you can set your own.我认为您不能只使用 Windows 默认的 .exe 图标,但您可以设置自己的图标。
Use pyinstaller --onefile --icon=myicon.ico yourapp.py
for the command, and have myicon.ico
in that directory or specify which directory.使用
pyinstaller --onefile --icon=myicon.ico yourapp.py
作为命令,并将myicon.ico
放在该目录中或指定哪个目录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.