aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/bundle/BundleModule.qbs
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@theqtcompany.com>2015-09-20 02:46:07 -0700
committerJake Petroules <jake.petroules@theqtcompany.com>2015-09-22 16:33:44 +0000
commit3d1cb085e09d61ab5b31a5a8b1f717a578485ab2 (patch)
tree50e3e9d69e34afcc9b715a4abebc1d99f62581ce /share/qbs/modules/bundle/BundleModule.qbs
parente5148d7589160448e3cb2942f0838c43eecc132b (diff)
Only run lsregister on OS X targets.
This is meaningless for other Apple platforms. Change-Id: I186b54bc7181d58bab8bf90740dcfd7dd776798c Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'share/qbs/modules/bundle/BundleModule.qbs')
-rw-r--r--share/qbs/modules/bundle/BundleModule.qbs3
1 files changed, 2 insertions, 1 deletions
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");