1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-06-08 11:22:10 +03:00

setup.py: win32 OPTIONS and DATA_FILES formatting

This commit is contained in:
Athanasius 2020-10-08 12:30:35 +01:00
parent b417745e7e
commit 03c97299c4

View File

@ -160,27 +160,36 @@ if sys.platform == 'darwin':
} }
DATA_FILES = [] DATA_FILES = []
elif sys.platform=='win32': elif sys.platform == 'win32':
OPTIONS = { 'py2exe': OPTIONS = {
{'dist_dir': dist_dir, 'py2exe': {
'optimize': 2, 'dist_dir': dist_dir,
'packages': [ 'optimize': 2,
'sqlite3', # Included for plugins 'packages': [
], 'sqlite3', # Included for plugins
'includes': [ ],
'dataclasses', 'includes': [
'shutil', # Included for plugins 'dataclasses',
'timeout_session', 'shutil', # Included for plugins
'zipfile', # Included for plugins 'timeout_session',
], 'zipfile', # Included for plugins
'excludes': [ 'distutils', '_markerlib', 'optparse', 'PIL', 'pkg_resources', 'simplejson', 'unittest' ], ],
} 'excludes': [
'distutils',
'_markerlib',
'optparse',
'PIL',
'pkg_resources',
'simplejson',
'unittest'
],
}
} }
DATA_FILES = [ DATA_FILES = [
('', [ ('', [
'WinSparkle.dll', 'WinSparkle.dll',
'WinSparkle.pdb', # For debugging - don't include in package 'WinSparkle.pdb', # For debugging - don't include in package
'EUROCAPS.TTF', 'EUROCAPS.TTF',
'Changelog.md', 'Changelog.md',
'commodity.csv', 'commodity.csv',
@ -191,12 +200,12 @@ elif sys.platform=='win32':
'ships.p', 'ships.p',
'stations.p', 'stations.p',
'systems.p', 'systems.p',
'%s.VisualElementsManifest.xml' % appname, f'{appname}.VisualElementsManifest.xml',
'%s.ico' % appname, f'{appname}.ico',
'EDMarketConnector - TRACE.bat', 'EDMarketConnector - TRACE.bat',
'EDMarketConnector - localserver-auth.bat', 'EDMarketConnector - localserver-auth.bat',
]), ]),
('L10n', [join('L10n',x) for x in os.listdir('L10n') if x.endswith('.strings')]), ('L10n', [join('L10n', x) for x in os.listdir('L10n') if x.endswith('.strings')]),
('plugins', PLUGINS), ('plugins', PLUGINS),
] ]