how to add license text to cx_freeze bdist_msi?

我的梦境 提交于 2019-12-08 06:49:52

问题


I have a small python application and i want to add GNU GPL license text to MSI package, which cx_Freeze produces.

I use this setup scrip, with bdist_msi option:

import sys
from cx_Freeze import setup, Executable

path = sys.path + ["app"]
build_exe_options = {
"path": path,
"icon": "resources\icons\clock.ico"}

base = None
if sys.platform == "win32":
    base = "Win32GUI"

setup(  name = "app",
        version = "1.1",
        description = "My Application",
        options = {"build_exe": build_exe_options},
        executables = [Executable("app.py", base=base,
            targetName="app.exe",
            shortcutName="Application",
            shortcutDir="DesktopFolder")])

How can i do that?


回答1:


According to the documentation, cx_Freeze is able to build a simple installer which probably doesn't include showing a license (or at least I couldn't find it in the docs).
However, you can run your setup script with python setup.py build and then package the files up using a professional installer like Inno Setup or NSIS. Both of them are free and let you customize pretty much everything you want, including showing a license.



来源:https://stackoverflow.com/questions/16766473/how-to-add-license-text-to-cx-freeze-bdist-msi

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