From ee7524998d6110d9b0cbe5fdf5fa960c8f0f33fc Mon Sep 17 00:00:00 2001 From: Ivan Komissarov Date: Fri, 11 Nov 2022 01:32:26 +0300 Subject: macos: fix support for Macos Ventura The lsregister tool takes path to a bundle, not a name. Change-Id: I9093bab53586dc66d2854cd02271b1402fb33ac5 Reviewed-by: Christian Kandeler --- share/qbs/modules/bundle/BundleModule.qbs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/qbs/modules/bundle/BundleModule.qbs b/share/qbs/modules/bundle/BundleModule.qbs index 7432161a4..d43be5116 100644 --- a/share/qbs/modules/bundle/BundleModule.qbs +++ b/share/qbs/modules/bundle/BundleModule.qbs @@ -778,8 +778,10 @@ Module { if (bundleType === "application" && product.moduleProperty("qbs", "targetOS").contains("macos")) { + var bundlePath = FileInfo.joinPaths( + product.destinationDirectory, product.bundle.bundleName); cmd = new Command(ModUtils.moduleProperty(product, "lsregisterPath"), - ["-f", product.bundle.bundleName]); + ["-f", bundlePath]); cmd.description = "registering " + ModUtils.moduleProperty(product, "bundleName"); commands.push(cmd); } -- cgit v1.2.1