pyinstaller 2.0 - How to add descriptions for a windows exe file?

北慕城南 提交于 2020-07-30 02:27:28

问题


How can I add descriptions like version, copyright, file description etc. to a single file (exe)

enter image description here

python pyinstaller.py -F -w -i favicon.ico C:\Projekte\Eclipse\MyApp\app.pyw

回答1:


--version-file=versioninfo.txt

Example: PATH_TO\PyInstaller-2.1\tests\basic\test_pkg_structures-version.txt

Read the Manual "Capturing Version Data".




回答2:


I recomend to you that read this thread, Comprehensive tutorial on Pyinstaller?. Would be help to you. By the other hand, I used py2exe, if you use py2exe is most powerfull, i left to you a setup.py of py2exe, on this setup.py you see the properties that you want to get to you app.exe.

from distutils.core import setup
import py2exe, sys 
import glob

setup(
    name='AppName',
    version='1.0',
    scripts=['src\modInicio\inicio_class.py'],
    windows=['src\modInicio\inicio_class.py'],
    data_files=[('glade', glob.glob('interface\Sname.glade')), ('', glob.glob('gui/config.ini'))],
    packages=['src\modules'],
    options={'py2exe':{'packages':'encodings,reportlab',                        
                       'includes':'gtk,gtk.glade,cairo,pango, pangocairo, atk,gobject, logging, sqlalchemy,sqlalchemy.ext.sqlsoup'                       
                     },
            'sdist':{'formats':'zip'}
           }
 )

I leave you here this link, http://www.pyinstaller.org/export/develop/project/doc/Manual.html ,in it documentation appear things like this

    Windows specific options:
--version-file=FILE
     add a version resource from FILE to the exe
-m FILE, -m XML, --manifest=FILE, --manifest=XML
     add manifest FILE or XML to the exe


来源:https://stackoverflow.com/questions/15879713/pyinstaller-2-0-how-to-add-descriptions-for-a-windows-exe-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!