fix: empaquetar datos de flet en el exe (icons.json)

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>
This commit is contained in:
2026-07-10 10:25:53 -05:00
parent 4347925cc3
commit a8db143339

View File

@@ -1,12 +1,19 @@
# -*- mode: python ; coding: utf-8 -*- # -*- 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( a = Analysis(
['main.py'], ['main.py'],
pathex=[], pathex=[],
binaries=[], binaries=binaries,
datas=[], datas=datas,
hiddenimports=[], hiddenimports=hiddenimports,
hookspath=[], hookspath=[],
hooksconfig={}, hooksconfig={},
runtime_hooks=[], runtime_hooks=[],
@@ -35,5 +42,4 @@ exe = EXE(
target_arch=None, target_arch=None,
codesign_identity=None, codesign_identity=None,
entitlements_file=None, entitlements_file=None,
version='C:\\Users\\PC\\AppData\\Local\\Temp\\6dd1fff1-457d-40b5-9d54-2ef8d8c29463',
) )