Skip to content

Commit

Permalink
Merge pull request nwutils#199 from bambooCZ/mac-plist-fix
Browse files Browse the repository at this point in the history
Fix for overwriting specified mac plist properties
  • Loading branch information
adam-lynch committed Mar 7, 2015
2 parents 368cb5f + ac5a106 commit ecc9660
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,12 @@ module.exports = {
});

// Remove some unwanted properties
if(!options.hasOwnProperty('mac_document_types')) {
if(!(options.hasOwnProperty('mac_document_types') || options.hasOwnProperty('CFBundleDocumentTypes'))) {
info.CFBundleDocumentTypes = [];
}
info.UTExportedTypeDeclarations = [];

if(!options.hasOwnProperty('UTExportedTypeDeclarations'))
info.UTExportedTypeDeclarations = [];

// Write output file
return writeFile(plistOutput, plist.build(info));
Expand Down

0 comments on commit ecc9660

Please sign in to comment.