Skip to content

Commit

Permalink
Fixed getPlistOptions inconsistency. See #133
Browse files Browse the repository at this point in the history
  • Loading branch information
bastimeyer committed Dec 9, 2014
1 parent 0b13826 commit f163a07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ NwBuilder.prototype.handleMacApp = function () {
{
name: self.options.appName,
version: self.options.appVersion,
copyright: self._appPkg.copyright || false
copyright: self._appPkg.copyright
},
self.options.macPlist
);
Expand Down
6 changes: 3 additions & 3 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ module.exports = {
},
getPlistOptions: function(parsedParams, custom) {
var obj = {};
if(parsedParams.name !== undefined) {
if(parsedParams.name) {
obj.CFBundleName = parsedParams.name;
obj.CFBundleDisplayName = parsedParams.name;
}
if(parsedParams.version !== undefined) {
if(parsedParams.version) {
obj.CFBundleVersion = parsedParams.version;
obj.CFBundleShortVersionString = 'Version ' + parsedParams.version;
}
if(parsedParams.copyright !== undefined) {
if(parsedParams.copyright) {
obj.NSHumanReadableCopyright = parsedParams.copyright;
}

Expand Down

0 comments on commit f163a07

Please sign in to comment.