2022-01-16 16:57:31 +00:00
|
|
|
# -*- mode: python ; coding: utf-8 -*-
|
|
|
|
|
|
|
|
|
|
|
|
block_cipher = None
|
|
|
|
|
|
|
|
# DAEMON --------------------------------------------------
|
|
|
|
daemon_a = Analysis(['daemon.py'],
|
|
|
|
pathex=[],
|
|
|
|
binaries=[],
|
2022-11-19 10:00:55 +00:00
|
|
|
datas=[],
|
2022-01-16 16:57:31 +00:00
|
|
|
hiddenimports=[],
|
|
|
|
hookspath=[],
|
|
|
|
hooksconfig={},
|
|
|
|
runtime_hooks=[],
|
|
|
|
excludes=[],
|
|
|
|
win_no_prefer_redirects=False,
|
|
|
|
win_private_assemblies=False,
|
|
|
|
cipher=block_cipher,
|
|
|
|
noarchive=False)
|
|
|
|
daemon_pyz = PYZ(daemon_a.pure, daemon_a.zipped_data,
|
|
|
|
cipher=block_cipher)
|
|
|
|
|
|
|
|
daemon_exe = EXE(daemon_pyz,
|
|
|
|
daemon_a.scripts,
|
|
|
|
[],
|
|
|
|
exclude_binaries=True,
|
2022-02-24 09:13:00 +00:00
|
|
|
name='freedata-daemon',
|
2023-01-21 11:07:50 +00:00
|
|
|
bundle_identifier='com.dj2ls.freedata-daemon',
|
2022-01-16 16:57:31 +00:00
|
|
|
debug=False,
|
|
|
|
bootloader_ignore_signals=False,
|
|
|
|
strip=False,
|
|
|
|
upx=True,
|
|
|
|
console=True,
|
|
|
|
disable_windowed_traceback=False,
|
|
|
|
target_arch=None,
|
|
|
|
codesign_identity=None,
|
|
|
|
entitlements_file=None )
|
|
|
|
|
|
|
|
# add lib folder to system path. We only need to do this once
|
2022-02-15 17:16:46 +00:00
|
|
|
daemon_a.datas += Tree('lib', prefix='lib')
|
|
|
|
# daemon_a.datas += Tree('./codec2', prefix='codec2')
|
2022-01-16 16:57:31 +00:00
|
|
|
|
|
|
|
|
2023-10-20 12:12:20 +00:00
|
|
|
# Modem --------------------------------------------------
|
|
|
|
modem_a = Analysis(['main.py'],
|
2022-01-16 16:57:31 +00:00
|
|
|
pathex=[],
|
|
|
|
binaries=[],
|
|
|
|
datas=[],
|
|
|
|
hiddenimports=[],
|
|
|
|
hookspath=[],
|
|
|
|
hooksconfig={},
|
|
|
|
runtime_hooks=[],
|
|
|
|
excludes=[],
|
|
|
|
win_no_prefer_redirects=False,
|
|
|
|
win_private_assemblies=False,
|
|
|
|
cipher=block_cipher,
|
|
|
|
noarchive=False)
|
2023-10-20 12:12:20 +00:00
|
|
|
modem_pyz = PYZ(modem_a.pure, modem_a.zipped_data,
|
2022-01-16 16:57:31 +00:00
|
|
|
cipher=block_cipher)
|
|
|
|
|
2023-10-20 12:12:20 +00:00
|
|
|
modem_exe = EXE(modem_pyz,
|
|
|
|
modem_a.scripts,
|
2022-01-16 16:57:31 +00:00
|
|
|
[],
|
|
|
|
exclude_binaries=True,
|
2023-10-20 12:12:20 +00:00
|
|
|
name='freedata-modem',
|
|
|
|
bundle_identifier='com.dj2ls.freedata-modem',
|
2022-01-16 16:57:31 +00:00
|
|
|
debug=False,
|
|
|
|
bootloader_ignore_signals=False,
|
|
|
|
strip=False,
|
|
|
|
upx=True,
|
|
|
|
console=True,
|
|
|
|
disable_windowed_traceback=False,
|
|
|
|
target_arch=None,
|
|
|
|
codesign_identity=None,
|
|
|
|
entitlements_file=None )
|
|
|
|
|
|
|
|
|
|
|
|
coll = COLLECT(daemon_exe,
|
|
|
|
daemon_a.binaries,
|
|
|
|
daemon_a.zipfiles,
|
|
|
|
daemon_a.datas,
|
2023-10-20 12:12:20 +00:00
|
|
|
modem_exe,
|
|
|
|
modem_a.binaries,
|
|
|
|
modem_a.zipfiles,
|
|
|
|
modem_a.datas,
|
2022-01-16 16:57:31 +00:00
|
|
|
strip=False,
|
|
|
|
upx=True,
|
|
|
|
upx_exclude=[],
|
2023-10-20 12:12:20 +00:00
|
|
|
name='modem')
|