From 5c987cf879d5e8e8e90f31694cc54fcb92128e85 Mon Sep 17 00:00:00 2001 From: cwilvx Date: Wed, 30 Apr 2025 11:30:50 +0300 Subject: [PATCH] try: specify hidden import --- app/arg_handler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/arg_handler.py b/app/arg_handler.py index f98b7ea1..7caca41e 100644 --- a/app/arg_handler.py +++ b/app/arg_handler.py @@ -59,6 +59,7 @@ def handle_build(*args, **kwargs): _s = ";" if is_windows() else ":" flask_openapi_path = getFlaskOpenApiPath() + server_module = "waitress" if is_windows() else "bjoern" bundler.run( [ @@ -71,6 +72,7 @@ def handle_build(*args, **kwargs): f"--add-data=client{_s}client", f"--add-data=version.txt{_s}.", f"--add-data={flask_openapi_path}/templates/static{_s}flask_openapi3/templates/static", + f"--hidden-import={server_module}", "--icon=assets/logo-fill.light.ico", "-y", ]