Added plist modification to export.
CFBundleDisplayName -> App Name CFBundleName -> App Name CFBundleShortVersionString -> Version CFBundleVersion -> Version
This commit is contained in:
parent
ee236ec59e
commit
0cf54ce55a
1 changed files with 15 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue