58 lines
1.1 KiB
Python
58 lines
1.1 KiB
Python
# -*- mode: python ; coding: utf-8 -*-
|
|
|
|
import os
|
|
|
|
# Collect level directories dynamically
|
|
level_dirs = []
|
|
levels_path = 'levels'
|
|
if os.path.exists(levels_path):
|
|
for item in os.listdir(levels_path):
|
|
item_path = os.path.join(levels_path, item)
|
|
if os.path.isdir(item_path):
|
|
level_dirs.append((item_path, item_path))
|
|
|
|
a = Analysis(
|
|
['wicked_quest.py'],
|
|
pathex=[],
|
|
binaries=[],
|
|
datas=level_dirs + [
|
|
('sounds', 'sounds'),
|
|
('libstormgames', 'libstormgames'),
|
|
],
|
|
hiddenimports=[],
|
|
hookspath=[],
|
|
hooksconfig={},
|
|
runtime_hooks=[],
|
|
excludes=[],
|
|
noarchive=False,
|
|
optimize=0,
|
|
)
|
|
pyz = PYZ(a.pure)
|
|
|
|
exe = EXE(
|
|
pyz,
|
|
a.scripts,
|
|
[],
|
|
exclude_binaries=True,
|
|
name='wicked_quest',
|
|
debug=False,
|
|
bootloader_ignore_signals=False,
|
|
strip=False,
|
|
upx=True,
|
|
console=True,
|
|
disable_windowed_traceback=False,
|
|
argv_emulation=False,
|
|
target_arch=None,
|
|
codesign_identity=None,
|
|
entitlements_file=None,
|
|
)
|
|
coll = COLLECT(
|
|
exe,
|
|
a.binaries,
|
|
a.datas,
|
|
strip=False,
|
|
upx=True,
|
|
upx_exclude=[],
|
|
name='wicked_quest',
|
|
)
|