python应用程序打包教程

需要用到:pyinstaller插件

pyinstaller 打包exe文件命令:

pyinstaller -F --icon=G:\cat.ico --version-file=G:\version.txt G:\shop\Python-project\refund_goods.py

 

文件版本模板:version.txt

VSVersionInfo(

ffi=FixedFileInfo(

filevers=(1, 0, 91, 1),

prodvers=(1, 0, 92, 1),

mask=0x3f,

flags=0x0,

OS=0x40004,

fileType=0x1,

subtype=0x0,

date=(0, 0)

),

kids=[

StringFileInfo(

[

StringTable(

'040904B0',

[StringStruct('CompanyName', '公司名称'),

StringStruct('FileDescription', '版本描述'),

StringStruct('FileVersion', '1.0.93.1 版本号'),

StringStruct('InternalName', 'mainX 内部名称'),

StringStruct('LegalCopyright', 'www.cnblogs.com/balian. All rights reserved. 法律版权'),

StringStruct('OriginalFilename', 'AmAin.eXE 原始文件名'),

StringStruct('ProductName', 'Running on MS Windows 产品名称'),

StringStruct('ProductVersion', '1.0.94.1 产品版本')])

]),

VarFileInfo([VarStruct('Translation', [1033, 1200])])

]

)

  

原文地址:https://www.cnblogs.com/yifengyu/p/15572924.html