PyInstaller no incluia flet/controls/material/icons.json, por lo que al crear iconos en la GUI se lanzaba FileNotFoundError y las filas no se pintaban. Se recolectan flet y flet_desktop con collect_all. Tambien se elimina la ruta version= que apuntaba a un temporal inexistente. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
46 lines
1.0 KiB
Python
46 lines
1.0 KiB
Python
# -*- mode: python ; coding: utf-8 -*-
|
|
|
|
from PyInstaller.utils.hooks import collect_all
|
|
|
|
# flet necesita sus archivos de datos (icons.json, etc.); el hook por defecto no los trae completos
|
|
datas, binaries, hiddenimports = [], [], []
|
|
for pkg in ('flet', 'flet_desktop'):
|
|
d, b, h = collect_all(pkg)
|
|
datas += d; binaries += b; hiddenimports += h
|
|
|
|
a = Analysis(
|
|
['main.py'],
|
|
pathex=[],
|
|
binaries=binaries,
|
|
datas=datas,
|
|
hiddenimports=hiddenimports,
|
|
hookspath=[],
|
|
hooksconfig={},
|
|
runtime_hooks=[],
|
|
excludes=[],
|
|
noarchive=False,
|
|
optimize=0,
|
|
)
|
|
pyz = PYZ(a.pure)
|
|
|
|
exe = EXE(
|
|
pyz,
|
|
a.scripts,
|
|
a.binaries,
|
|
a.datas,
|
|
[],
|
|
name='SCAII_Sincronizador_32bit',
|
|
debug=False,
|
|
bootloader_ignore_signals=False,
|
|
strip=False,
|
|
upx=True,
|
|
upx_exclude=[],
|
|
runtime_tmpdir=None,
|
|
console=False,
|
|
disable_windowed_traceback=False,
|
|
argv_emulation=False,
|
|
target_arch=None,
|
|
codesign_identity=None,
|
|
entitlements_file=None,
|
|
)
|