Added plist modification to export.

CFBundleDisplayName -> App Name
CFBundleName -> App Name

CFBundleShortVersionString -> Version
CFBundleVersion -> Version
This commit is contained in:
Joey Payne 2015-04-09 13:50:41 -06:00
commit 0cf54ce55a

View file

@ -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,