dcs-retribution/pyinstaller.spec
Dan Albert 2891649531 Fix pyinstaller spec for release.
final and buildnumber are optional files. Move them into resources to
avoid naming them explicitly.

(cherry picked from commit fae9650f56854bb3f3508ee5b2625bba8e7ad2f8)
2020-11-14 13:13:18 -08:00

50 lines
929 B
Python

# -*- mode: python -*-
block_cipher = None
analysis = Analysis(
['./qt_ui/main.py'],
pathex=['.'],
binaries=[],
datas=[
('resources', 'resources'),
('resources/caucasus.p', 'dcs/terrain/'),
('resources/nevada.p', 'dcs/terrain/'),
],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(
analysis.pure,
analysis.zipped_data,
cipher=block_cipher,
)
exe = EXE(
pyz,
analysis.scripts,
[],
icon="resources/icon.ico",
exclude_binaries=True,
name='liberation_main',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
)
coll = COLLECT(
exe,
analysis.binaries,
analysis.zipfiles,
analysis.datas,
strip=False,
upx=True,
name='dcs_liberation',
)