2018-12-16 23:25:44 -06:00
|
|
|
# -*- coding: utf-8 -*-
|
2019-11-15 17:46:36 -06:00
|
|
|
import sys
|
2016-02-21 08:17:12 -06:00
|
|
|
import application
|
2019-11-15 17:46:36 -06:00
|
|
|
from cx_Freeze import setup, Executable
|
2016-02-21 08:17:12 -06:00
|
|
|
import platform
|
2019-11-15 17:46:36 -06:00
|
|
|
import os
|
2016-02-21 08:17:12 -06:00
|
|
|
from glob import glob
|
|
|
|
|
|
|
|
def get_data():
|
2019-11-15 17:46:36 -06:00
|
|
|
""" Get data files for the project. """
|
|
|
|
import accessible_output2
|
|
|
|
import sound_lib
|
|
|
|
datas = [
|
|
|
|
(["session.defaults", "app-configuration.defaults", "cacert.pem"], ""),]+get_sounds()+get_locales()+get_documentation()+get_architecture_files()
|
|
|
|
print(datas)
|
|
|
|
return datas
|
2016-02-21 08:17:12 -06:00
|
|
|
|
2019-11-15 17:46:36 -06:00
|
|
|
base = None
|
|
|
|
if sys.platform == 'win32':
|
|
|
|
base = 'Win32GUI'
|
2016-02-21 08:17:12 -06:00
|
|
|
|
2019-11-15 17:46:36 -06:00
|
|
|
build_exe_options = dict(
|
|
|
|
build_exe="dist",
|
|
|
|
optimize=2,
|
|
|
|
include_msvcr=True,
|
|
|
|
# zip_include_packages="*",
|
|
|
|
# zip_exclude_packages=["lxml", "wx", "sound_lib", "enchant", "accessible_output2"],
|
|
|
|
include_files=["session.defaults", "app-configuration.defaults", "cacert.pem", "locales", "sounds", "documentation", "../windows-dependencies/x86/oggenc2.exe", "../windows-dependencies/x86/bootstrap.exe"],
|
|
|
|
)
|
2016-02-21 08:17:12 -06:00
|
|
|
|
2019-11-15 17:46:36 -06:00
|
|
|
executables = [
|
|
|
|
Executable('main.py', base=base)
|
|
|
|
]
|
2016-02-21 08:17:12 -06:00
|
|
|
|
2019-11-15 17:46:36 -06:00
|
|
|
setup(name='Socializer',
|
|
|
|
version=application.version,
|
|
|
|
description=application.description,
|
|
|
|
options = {"build_exe": build_exe_options},
|
|
|
|
executables=executables
|
|
|
|
)
|