build(electron): added much more robust dependency checking to electron app
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user