使用pyinstaller构建可执行文件,并带有Windows默认可执行文件图标 [英] Building an executable using pyinstaller, with windows default executable icon

查看:347
本文介绍了使用pyinstaller构建可执行文件,并带有Windows默认可执行文件图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只需要使用pyinstaller生成带有默认Windows .exe图标的可执行文件. 或在编译后删除/设置默认Windows图标的方法.

I just need to build an executable using pyinstaller, with the default windows .exe icon. Or a way to remove/set default windows icon after compiling.

谢谢.

推荐答案

我认为您不能只使用Windows默认.exe图标,但可以设置自己的图标.
使用pyinstaller --onefile --icon=myicon.ico yourapp.py作为命令,并在该目录中包含myicon.ico或指定哪个目录.

I don't think you can just use windows default .exe icon, but you can set your own.
Use pyinstaller --onefile --icon=myicon.ico yourapp.py for the command, and have myicon.ico in that directory or specify which directory.

这篇关于使用pyinstaller构建可执行文件,并带有Windows默认可执行文件图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆