From 3d1cb085e09d61ab5b31a5a8b1f717a578485ab2 Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Sun, 20 Sep 2015 02:46:07 -0700 Subject: Only run lsregister on OS X targets. This is meaningless for other Apple platforms. Change-Id: I186b54bc7181d58bab8bf90740dcfd7dd776798c Reviewed-by: Christian Kandeler --- share/qbs/modules/bundle/BundleModule.qbs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'share/qbs/modules/bundle/BundleModule.qbs') diff --git a/share/qbs/modules/bundle/BundleModule.qbs b/share/qbs/modules/bundle/BundleModule.qbs index 833aeb68b..0c681d6fb 100644 --- a/share/qbs/modules/bundle/BundleModule.qbs +++ b/share/qbs/modules/bundle/BundleModule.qbs @@ -608,7 +608,8 @@ Module { commands.push(cmd); } - if (product.type.contains("application")) { + if (product.type.contains("application") + && product.moduleProperty("qbs", "targetOS").contains("osx")) { cmd = new Command(ModUtils.moduleProperty(product, "lsregisterPath"), ["-f", bundles[i].filePath]); cmd.description = "register " + ModUtils.moduleProperty(product, "bundleName"); -- cgit v1.2.3