mirror of
https://github.com/JDM170/SaveWizard
synced 2025-04-20 22:30:42 +07:00
* Added validator for ADR (module 'main') * Added window for choice configs (module 'choice') * Added sync configs from github (this repo, module 'parsing') * Updated setup.py for correct project build * Small code fixes Signed-off-by: JDM170 <30170278+JDM170@users.noreply.github.com>
51 lines
1.5 KiB
Python
51 lines
1.5 KiB
Python
#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from sys import platform
|
|
from cx_Freeze import setup, Executable
|
|
|
|
base = None
|
|
if platform == 'win32':
|
|
base = 'Win32GUI'
|
|
|
|
executables = [Executable('__init__.py', targetName='SaveWizard.exe', base=base)]
|
|
|
|
excludes = ['html', 'pydoc_data', 'unittest', 'xml', 'pwd', 'shlex', 'platform', 'webbrowser', 'pydoc', 'tty',
|
|
'inspect', 'doctest', 'plistlib', 'subprocess', 'bz2', '_strptime', 'dummy_threading']
|
|
|
|
includes = ['pkgutil', 'enum', 'queue', 'PyQt5.sip']
|
|
|
|
zip_include_packages = [
|
|
# Stock modules
|
|
'collections', 'encodings', 'importlib', 'json', 'hashlib', 'selectors', 'select', 'http', 'email', 'datetime',
|
|
'calendar', 'urllib', 'posixpath', 'tempfile', 'shutil', 'copy', 'stringprep', 'socket', 'ast',
|
|
# PyQt5
|
|
'PyQt5',
|
|
# Modules for parsing cfg's
|
|
'requests', 'logging', 'certifi', 'chardet', 'idna', 'urllib3',
|
|
# Self-written modules
|
|
'parsing', 'choice', 'main', 'second'
|
|
]
|
|
|
|
include_files = ['dlls/imageformats', 'dlls/platforms', 'dlls/styles', 'SII_Decrypt.exe', 'configs']
|
|
|
|
options = {
|
|
'build_exe': {
|
|
'excludes': excludes,
|
|
'includes': includes,
|
|
'include_msvcr': True,
|
|
'build_exe': 'prog_build',
|
|
'include_files': include_files,
|
|
'zip_include_packages': zip_include_packages,
|
|
}
|
|
}
|
|
|
|
setup(
|
|
name='SaveWizard',
|
|
version='1.2',
|
|
description='For editing ETS2 sii files',
|
|
executables=executables,
|
|
options=options,
|
|
requires=['PyQt5', 'requests'],
|
|
)
|