fix update_version.py

This commit is contained in:
Le Tan 2021-11-19 07:59:21 +08:00
parent 14c54ab275
commit 54576543e9
2 changed files with 4 additions and 4 deletions

View File

@ -20,10 +20,10 @@ for line in fileinput.input(['.github/workflows/ci-win.yml', '.github/workflows/
print(regExp.sub('\\1VNOTE_VER: ' + newVersion, line), end='')
# Info.plist
regExp = re.compile('(\\s+)<string>\\d\\.\\d\\.\\d</string>')
regExp = re.compile('(\\s+)<string>\\d+\\.\\d+\\.\\d+</string>')
for line in fileinput.input(['src/data/core/Info.plist'], inplace = True):
print(regExp.sub('\\1<string>' + newVersion + '</string>', line), end='')
regExp = re.compile('(\\s+)<string>\\d\\.\\d\\.\\d\\.\\d</string>')
regExp = re.compile('(\\s+)<string>\\d+\\.\\d+\\.\\d+\\.\\d+</string>')
for line in fileinput.input(['src/data/core/Info.plist'], inplace = True):
print(regExp.sub('\\1<string>' + newVersion + '.1</string>', line), end='')

View File

@ -21,9 +21,9 @@
<key>CFBundleExecutable</key>
<string>vnote</string>
<key>CFBundleShortVersionString</key>
<string>3.10.0</string>
<string>3.10.1</string>
<key>CFBundleVersion</key>
<string>3.10.0.1</string>
<string>3.10.1.1</string>
<key>NSHumanReadableCopyright</key>
<string>Created by VNoteX</string>
<key>CFBundleIconFile</key>