mac: Set CFBundleShortVersionString in Info.plist

This commit is contained in:
Cheng Zhao 2015-09-29 13:25:51 +08:00
parent 48faf74f7f
commit 9e51ff2b4b
2 changed files with 6 additions and 3 deletions

View file

@ -18,6 +18,8 @@
<string>atom.icns</string>
<key>CFBundleVersion</key>
<string>0.33.7</string>
<key>CFBundleShortVersionString</key>
<string>0.33.7</string>
<key>LSMinimumSystemVersion</key>
<string>10.8.0</string>
<key>NSMainNibFile</key>

View file

@ -106,10 +106,11 @@ def update_info_plist(version):
line = lines[i]
if 'CFBundleVersion' in line:
lines[i + 1] = ' <string>{0}</string>\n'.format(version)
if 'CFBundleShortVersionString' in line:
lines[i + 1] = ' <string>{0}</string>\n'.format(version)
with open(info_plist, 'w') as f:
f.write(''.join(lines))
return
with open(info_plist, 'w') as f:
f.write(''.join(lines))
def tag_version(version):