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>
|
<string>atom.icns</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>0.33.7</string>
|
<string>0.33.7</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>0.33.7</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>10.8.0</string>
|
<string>10.8.0</string>
|
||||||
<key>NSMainNibFile</key>
|
<key>NSMainNibFile</key>
|
||||||
|
|
|
@ -106,10 +106,11 @@ def update_info_plist(version):
|
||||||
line = lines[i]
|
line = lines[i]
|
||||||
if 'CFBundleVersion' in line:
|
if 'CFBundleVersion' in line:
|
||||||
lines[i + 1] = ' <string>{0}</string>\n'.format(version)
|
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:
|
with open(info_plist, 'w') as f:
|
||||||
f.write(''.join(lines))
|
f.write(''.join(lines))
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
def tag_version(version):
|
def tag_version(version):
|
||||||
|
|
Loading…
Reference in a new issue