diff options
author | Jake Petroules <jake.petroules@petroules.com> | 2013-03-18 11:01:50 -0400 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-03-19 18:31:56 +0100 |
commit | 6e42b331601a235be32364ee759616240b6f4d2f (patch) | |
tree | 4a014f0d80aec09addf9669f195bd67f90c49e2e /share | |
parent | 9e4c720edc66c25dddfc76a9d0ef78bd2b2bb699 (diff) |
Actually put some items into the Info.plist (and upgrade to v1.0).
Change-Id: I299c379e3658d6e5b527dc1555ba0239430c330c
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'share')
-rw-r--r-- | share/qbs/modules/cpp/mac-gcc.qbs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/share/qbs/modules/cpp/mac-gcc.qbs b/share/qbs/modules/cpp/mac-gcc.qbs index 85807b693..455298534 100644 --- a/share/qbs/modules/cpp/mac-gcc.qbs +++ b/share/qbs/modules/cpp/mac-gcc.qbs @@ -23,12 +23,20 @@ UnixGCC { var cmd = new JavaScriptCommand(); cmd.description = "generating Info.plist"; cmd.highlight = "codegen"; - cmd.infoPlist = ModUtils.moduleProperty(product, "infoPlist") || {}; + cmd.infoPlist = ModUtils.moduleProperty(product, "infoPlist") || { + CFBundleDisplayName: product.targetName, + CFBundleExecutable: product.targetName, + CFBundleIconFile: product.targetName + ".icns", + CFBundleInfoDictionaryVersion: "6.0", + CFBundleName: product.targetName, + CFBundlePackageType: "APPL", + CFBundleSignature: "????" + }; cmd.sourceCode = function() { var infoplist = new TextFile(outputs.infoplist[0].fileName, TextFile.WriteOnly); infoplist.writeLine('<?xml version="1.0" encoding="UTF-8"?>'); - infoplist.writeLine('<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">'); - infoplist.writeLine('<plist version="0.9">'); + infoplist.writeLine('<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">'); + infoplist.writeLine('<plist version="1.0">'); infoplist.writeLine('<dict>'); for (var key in infoPlist) { infoplist.writeLine(' <key>' + key + '</key>'); |