我有一个小型 python 应用程序,我想将 GNU GPL 许可证文本添加到 cx_Freeze 生成的 MSI 包中。
我使用这个设置脚本,带有 bdist_msi 选项:
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")])
我怎样才能做到这一点?