mac: Set CFBundleShortVersionString in Info.plist
This commit is contained in:
parent
48faf74f7f
commit
9e51ff2b4b
2 changed files with 6 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue