build(electron): added much more robust dependency checking to electron app

This commit is contained in:
2025-08-11 06:46:03 -04:00
parent 63bc3a198d
commit 6c53e9ca6c
11 changed files with 1616 additions and 77 deletions

View File

@@ -29,10 +29,66 @@ analysis = Analysis(['bridge.py'],
pathex=[str(project_root)],
binaries=[],
# Add any modules that PyInstaller might not find automatically.
hiddenimports=['docker'],
hiddenimports=[
# Core dependencies
'docker',
'docker.api',
'docker.client',
'docker.errors',
'docker.models',
'docker.types',
'docker.utils',
# Cryptography dependencies
'cryptography',
'cryptography.hazmat',
'cryptography.hazmat.primitives',
'cryptography.hazmat.primitives.asymmetric',
'cryptography.hazmat.primitives.asymmetric.rsa',
'cryptography.hazmat.primitives.asymmetric.ed25519',
'cryptography.hazmat.primitives.asymmetric.padding',
'cryptography.hazmat.primitives.hashes',
'cryptography.hazmat.primitives.serialization',
'cryptography.exceptions',
# YAML dependencies
'yaml',
'yaml.loader',
'yaml.dumper',
# Core Python modules that might be missed
'pathlib',
'tempfile',
'zipfile',
'tarfile',
'hashlib',
'datetime',
'json',
'subprocess',
'shutil',
'logging',
# Platform-specific modules
'platform',
'os',
'sys',
# fourdst modules
'fourdst',
'fourdst.core',
'fourdst.core.bundle',
'fourdst.core.build',
'fourdst.core.config',
'fourdst.core.platform',
'fourdst.core.utils'
],
hookspath=[],
runtime_hooks=[],
excludes=[],
excludes=[
# Exclude unnecessary modules to reduce size
'tkinter',
'matplotlib',
'numpy',
'scipy',
'pandas',
'jupyter',
'IPython'
],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=None,