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

后端 未结 2 1974
暖寄归人
暖寄归人 2021-01-14 15:35

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

\"enter

相关标签:
2条回答
  • 2021-01-14 16:05

    --version-file=versioninfo.txt

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

    Read the Manual "Capturing Version Data".

    0 讨论(0)
  • 2021-01-14 16:08

    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
    
    0 讨论(0)
提交回复
热议问题