@@ -152,7 +152,7 @@ def build_cpp(project: str, src_dir: str, output_name: str) -> None:
152152 raise
153153
154154
155- def build_app_pyinstaller (fast = False ) -> None :
155+ def build_app_pyinstaller (fast = False , channel = 'stable' ) -> None :
156156 """Builds the Python application using PyInstaller."""
157157 # Try to locate pre-generated pycparser tables; generate them if absent.
158158 tables = find_pycparser_tables ()
@@ -200,7 +200,7 @@ def build_app_pyinstaller(fast=False) -> None:
200200 '--exclude-module=pandas' ,
201201 '--exclude-module=tabulate' ,
202202 external ,
203- * [f'--add-binary=src{ os .sep } external{ os .sep } { dll } ;external{ os .sep } { dll } ' for dll , _ in dotnet_dlls ],
203+ * ( [f'--add-binary=src{ os .sep } external{ os .sep } { dll } ;external{ os .sep } { dll } ' for dll , _ in dotnet_dlls ] if channel == 'stable' else [] ) ,
204204 'src/main.py'
205205 ]
206206
@@ -217,7 +217,7 @@ def build_app_pyinstaller(fast=False) -> None:
217217
218218def build_hammer5_tools (fast = False , channel = 'stable' ) -> None :
219219 # Phase 0: cleanup moved to main() for thread safety
220- build_app_pyinstaller (fast = fast )
220+ build_app_pyinstaller (fast = fast , channel = channel )
221221
222222 # Final distribution folder
223223 bundle_root = os .path .join (cur_dir , 'Hammer5Tools' )
0 commit comments