diff options
-rw-r--r-- | sources/pyside-tools/deploy_lib/deploy_util.py | 4 | ||||
-rw-r--r-- | testing/wheel_tester.py | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sources/pyside-tools/deploy_lib/deploy_util.py b/sources/pyside-tools/deploy_lib/deploy_util.py index 724c10bc0..b8744352d 100644 --- a/sources/pyside-tools/deploy_lib/deploy_util.py +++ b/sources/pyside-tools/deploy_lib/deploy_util.py @@ -77,6 +77,6 @@ def finalize(config: DesktopConfig): shutil.copytree(generated_exec_path, config.exe_dir / (config.title + dist_format), dirs_exist_ok=True) else: - shutil.copy(generated_exec_path, config.exe_dir) + shutil.copy(generated_exec_path, config.exe_dir / (config.title + dist_format)) print("[DEPLOY] Executed file created in " - f"{str(config.exe_dir / (config.source_file.stem + dist_format))}") + f"{str(config.exe_dir / (config.title + dist_format))}") diff --git a/testing/wheel_tester.py b/testing/wheel_tester.py index 81f6c4a7b..ab2f14913 100644 --- a/testing/wheel_tester.py +++ b/testing/wheel_tester.py @@ -231,8 +231,10 @@ def _run_deploy_test(example, tmpdirname): suffix = "exe" if sys.platform == "win32" else "bin" + # fetch app->title from the config + app_title = parser.get("app", "title") if sys.platform != "darwin": - binary = f"{tmpdirname}/{main_file.stem}.{suffix}" + binary = f"{tmpdirname}/{app_title}.{suffix}" else: binary = f"{tmpdirname}/pyside_app_demo.app/Contents/MacOS/{main_file.stem}" |