evshiron / nwjs-builder

https://www.npmjs.com/package/nwjs-builder
76 stars 12 forks source link

Manifest Options #12

Closed evshiron closed 8 years ago

evshiron commented 8 years ago

Predicting final name, version, description and etc. simply from package.json might not content every situation. An optional manifest property collection should help. I am thinking about adding a nwjsBuilder property in the package.json, which contains:

{
    "copyright": "",
    "internalName": "",
    "fileVersion": "",
    "comments": "",
    "companyName": "",
    "legalTrademarks": "",
    "originalFilename": "",
    "privateBuild": "",
    "specialBuild": ""
}

Every property is optional and if it's omitted, nothing is modified (no longer use the original properties except name, version and description). Most of the properties above are Windows build only, Mac OS X build may take advantage of them too.

evshiron commented 8 years ago

Done in 4616c73. Mac OS X build's copyright information is stored in i18n files which are ignored when building. I will leave them alone until there is a proper way to handle these i18n files.