cx_freeze发出python3安装文件

时间:2016-06-20 18:41:44

标签: python cx-freeze

如何将{'include_files':includefiles}添加到下方的选项字段中? 我得到的只是python中的一个错误。

from cx_Freeze import setup, Executable as cxExecutable
import platform
import sys


# -*- coding: utf-8 -*-

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

build_exe_options = {
"include_msvcr": True
}


WIN_Target = cxExecutable(
    script='PlayTubeInstaller.pyw',
    base=base,
#    if sys.platform == 'win32': base = 'Win32GUI'
    icon="Icon.ico"
)



includefiles = [ 'Icon.ico' , 'PlayTube.ipa' , 'libmobiledevice/' ]

setup(
    name = 'Installer',
    version = '0.1',
    description = 'A general enhancement utility',
    author = 'Steve Jobs',
    options = {'build_exe': build_exe_options},
    executables=[WIN_Target]
)

1 个答案:

答案 0 :(得分:0)

www.domain.com/api/test.php