summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2024-04-09 09:36:56 +0200
committerShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2024-04-09 10:31:37 +0200
commitbfa57435d1b0a13f4e19c61c45a8b835e02b9019 (patch)
tree3aea2e96b02ac7e058924113b8d1e2199ca5e3de
parent6c64bd1b2614dda62920e32329e2a45ae2d299b6 (diff)
PySide Deployment Test: Change executable suffix
- from .bin to .app Pick-to: master Change-Id: I682618f5eceefd069709c62f32dd691ceeb3d3b2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r--scripts/packagetesting/testwheel.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/packagetesting/testwheel.py b/scripts/packagetesting/testwheel.py
index c92bbe31..d3111128 100644
--- a/scripts/packagetesting/testwheel.py
+++ b/scripts/packagetesting/testwheel.py
@@ -217,10 +217,17 @@ def test_deploy(example):
os.chdir(tmpdirname)
for py_file in example.parent.glob("*.py"):
shutil.copy(py_file, tmpdirname)
- cmd = ["pyside6-deploy", "-f", base_name]
+ cmd = ["pyside6-deploy", "-f", base_name, "--name", name]
execute(cmd)
- suffix = "exe" if sys.platform == "win32" else "bin"
+ suffix = "bin"
+ if sys.platform == "win32":
+ suffix = "exe"
+ elif sys.platform == "darwin":
+ suffix = "app"
+
binary = f"{tmpdirname}/{name}.{suffix}"
+ if sys.platform == "darwin":
+ binary += f"/Contents/MacOS/{name}"
execute([binary])
result = True
except RuntimeError as e: