aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2024-07-31 16:14:50 +0200
committerShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2024-08-09 13:13:06 +0200
commit8ff61a10d142e6f51efcc26535f460e33a1cc0ed (patch)
tree4bc8d0a67579c3ed348658120b7ea731cb855983
parentcf72e6a2eb261ce84e21ac51b99786653ff3b4a5 (diff)
Desktop Deployment: Fix final application name
- Additionally, adapt wheel_tester.py Pick-to: 6.7 Fixes: PYSIDE-2806 Change-Id: If2c0d8f186142797f3280136298ed299643824f5 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r--sources/pyside-tools/deploy_lib/deploy_util.py4
-rw-r--r--testing/wheel_tester.py4
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}"