File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77import sys
88from pathlib import Path
9+ from PyInstaller .utils .hooks import collect_all
910
1011block_cipher = None
1112HERE = Path (SPECPATH ) # noqa: F821 — injected by PyInstaller
1213
14+ # Collect flet_desktop data/binaries (includes the bundled Flutter client)
15+ fd_datas , fd_binaries , fd_hiddenimports = collect_all ("flet_desktop" )
16+
1317# All pipeline scripts shipped alongside the GUI
1418pipeline_scripts = [
1519 (str (p ), "." )
@@ -20,9 +24,9 @@ pipeline_scripts = [
2024a = Analysis (
2125 [str (HERE / "gui.py" )],
2226 pathex = [str (HERE )],
23- binaries = [] ,
24- datas = pipeline_scripts ,
25- hiddenimports = [
27+ binaries = fd_binaries ,
28+ datas = pipeline_scripts + fd_datas ,
29+ hiddenimports = fd_hiddenimports + [
2630 "flet" ,
2731 "flet.fastapi" ,
2832 "flet_core" ,
Original file line number Diff line number Diff line change @@ -1421,4 +1421,4 @@ def _navigate(idx: int) -> None:
14211421
14221422
14231423if __name__ == "__main__" :
1424- ft .app (main )
1424+ ft .run (main )
You can’t perform that action at this time.
0 commit comments