|
用pyinstaller打包程序
--name : 指定可执行文件名称。
--specpath: 指定spec文件的生成目录,默认为当前目录。
-F, --onefile: 将整个应用程序打包到单个可执行文件中。
-D, --onedir: 生成一个目录,包含多个文件。
--add-data 、 --add-binary: 在构建中插入额外的数据或二进制文件,可用于绑定配置文件、示例或其他非代码数据。
--exclude-module: 排除某些模块。
-d, --debug: 提供debug输出。
-w, --windowed, --noconsole: 关闭控制台窗口(仅对Windows有效)。
-c, --nowindowed, --console: 使用命令行窗口(仅对Windows有效)。
-i: 设置应用图标。
|
|