热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

python打包的exe如何免杀,怎么安装pyinstaller库

安装pyinstallerpython.exe-mpipinstallpyinstallerpyinstaller帮助PSC:\Python37˃pyinsta


安装pyinstallerpython.exe-mpipinstallpyinstaller


pyinstaller帮助


PSC :\python 37 py installer.exe-h usage : py installer [-h ] [-v ] [-d ] [-f ] [-spec pathdir ]-name ] dstthe dstorsrc : dest (-pdir (-hidden-import modulename (-additional-hooks-dirhookspath ) -运行时- hooks [-- exclure ] 引导加载器,noarchive } [-s ] [-- noupx ] [-- upx-exclude file ] [-c ] [-w ] [-ifile.icoo rfile.exe, I dorfile.icns (-- version-file file ) [-mfileorxml ] [-r资源] (-- UAC-admin ) [-- UAC-ui访问] [-- OS x-bundle-identifier bundle _ identifier ] [-- runtime-tmpdir path ] [-- workpathworkpath ] [-y ] [-- upx


根据pyinstaller的帮助,只要向打包的exe程序中添加版本信息就可以使用


py installer [--版本-文件文件]


版本信息py installer.exe-f-- version-file file _ version _ info.txt test.py打包添加


找到了exe文件。 在cmd窗口中运行pyi-grab _ version.exe.test.exefile _ version _ info.txt以生成test.exe程序的版本信息


例如,我取得的版本信息如下


# utf-8 # # formoredetailsaboutfixedfileinfo ' FFI ' see : # http://msdn.Microsoft.com/en-us/library/ms 646997 fileversandprodversshouldbealwaysatuplewithfouritems 3360 (1、2、3、4 ) # Set not needed items to zero 0.#文件版本号file vers=# containsabitmaskthatspecifiesthevalidbits ' flags ' RM ask=0x3f,# containsabitmaskthatspecifiesthebooleanatttributesofthesofthefthefalieffiefiefiesk # theoperatingsystemforwhichthisfilewasdesigned.#0x4- ntandthereisnoneedtochangeit.OS=0x 4, # thegeneraltypeoffile.#0x1- thefileisanapplication.filetype=0x 1,# thefunctionofthefile.#0x0- thefunctionionisnotnotdeded # creationdateandtimestamp.date=(kids=[ string fileinfo ] [ string table (u ' 040904 B0 ) ],#文件说明[ string struct ] u ' fifile #内部名称stringstruct(u'internalname )、u'MaiGa entertainment chain )、#版权string struct (u ' legal copyright )、 u'copyright(c ) 2021 MaiGa entertainment chain ) )、#原始文件名字符串(u'originalfilename )、u'checkFTP.exe )和#产品版本号stringstruct(u'productversion ',u'1.0.0.1' )、varfileinfo ) [ var struct ] (u ' 0.1 ) ]


添加中文标注版本信息文档


直接从exe生成的版本信息文档


如果要将语言转换为中文,请将varfileinfo ([ var struct (u ' translation ),[ 1033,1200 ] )转换为var fileinfo ) [ var struct ] u ' translationfo


语言文档位于此https://docs.Microsoft.com/zh-cn/windows/win32/menu RC/var fileinfo-block上


这里需要将十六进制数转换为八进制数,可以在线旋转


推荐阅读
author-avatar
yigoon
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有