try: specify hidden import

This commit is contained in:
cwilvx
2025-04-30 11:30:50 +03:00
parent 6eb70b7d7c
commit 5c987cf879
+2
View File
@@ -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",
]