From 0cf54ce55a29f3a27ef25ba77b59c116cc36faf4 Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Thu, 9 Apr 2015 13:50:41 -0600 Subject: [PATCH] Added plist modification to export. CFBundleDisplayName -> App Name CFBundleName -> App Name CFBundleShortVersionString -> Version CFBundleVersion -> Version --- command_line.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/command_line.py b/command_line.py index ef6b02a..8687147 100644 --- a/command_line.py +++ b/command_line.py @@ -27,6 +27,8 @@ try: except ImportError: from StringIO import StringIO +import plistlib + from configobj import ConfigObj inside_packed_exe = getattr(sys, 'frozen', '') @@ -604,6 +606,19 @@ class CommandBase(object): 'node-webkit.app'), app_path) + plist_path = os.path.join(app_path, 'Contents', 'Info.plist') + + plist_dict = plistlib.readPlist(plist_path) + + plist_dict['CFBundleDisplayName'] = self.project_name() + plist_dict['CFBundleName'] = self.project_name() + version_setting = self.get_setting('version') + plist_dict['CFBundleShortVersionString'] = version_setting.value + plist_dict['CFBundleVersion'] = version_setting.value + + plistlib.writePlist(plist_dict, plist_path) + + self.progress_text += '.' shutil.copy(zip_file, os.path.join(app_path,