aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2023-09-08 12:53:14 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2023-09-08 12:55:13 +0200
commit2a07602a11217293a67f072130f24eaf6139f754 (patch)
tree3c0be48869adc051a4bde95a4b76a2513c9f22de /share/qbs/modules
parent05923d13b5272924105576ca215a038f8b554ead (diff)
parent40d304808479ea72c1d02dacf007ab8b05851e2e (diff)
Merge 2.1 into master
Diffstat (limited to 'share/qbs/modules')
-rw-r--r--share/qbs/modules/dmg/dmg.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/share/qbs/modules/dmg/dmg.js b/share/qbs/modules/dmg/dmg.js
index 4bd735e90..06fe7b906 100644
--- a/share/qbs/modules/dmg/dmg.js
+++ b/share/qbs/modules/dmg/dmg.js
@@ -135,7 +135,7 @@ function dmgbuildSettings(product, inputs) {
}
});
- return {
+ var result = {
"title": product.dmg.volumeName,
"icon": !product.dmg.badgeVolumeIcon ? volumeIcon : undefined,
"badge-icon": product.dmg.badgeVolumeIcon ? volumeIcon : undefined,
@@ -154,13 +154,16 @@ function dmgbuildSettings(product, inputs) {
},
"format": product.dmg.format,
"compression-level": product.dmg.compressionLevel,
- "build_license": {
+ "contents": contentsArray
+ };
+ if (licenseFileObjects.length >= 0) {
+ result["license"] = {
"default-language": product.dmg.defaultLicenseLocale,
"licenses": reduceLicensesForKey(licenseFileObjects, "licenses"),
"buttons": reduceLicensesForKey(licenseFileObjects, "buttons")
- },
- "contents": contentsArray
- };
+ };
+ }
+ return result;
}
function prepareLicense(project, product, inputs, outputs, input, output) {