Skip to content

Commit 5e4a6fa

Browse files
committed
release v3.18.2
1 parent 5da9268 commit 5e4a6fa

File tree

7 files changed

+12
-7
lines changed

7 files changed

+12
-7
lines changed

.github/workflows/ci-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
default: false
1717

1818
env:
19-
VNOTE_VER: 3.18.1
19+
VNOTE_VER: 3.18.2
2020
CMAKE_VER: 3.24.3
2121

2222
jobs:

.github/workflows/ci-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
default: false
1717

1818
env:
19-
VNOTE_VER: 3.18.1
19+
VNOTE_VER: 3.18.2
2020
CMAKE_VER: 3.24.3
2121

2222
jobs:

.github/workflows/ci-win.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
default: false
1717

1818
env:
19-
VNOTE_VER: 3.18.1
19+
VNOTE_VER: 3.18.2
2020

2121
jobs:
2222
build:

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 3.20)
33
set(CMAKE_OSX_DEPLOYMENT_TARGET "12.1" CACHE STRING "Minimum OS X deployment version")
44

55
project(VNote
6-
VERSION 3.18.1
6+
VERSION 3.18.2
77
DESCRIPTION "A pleasant note-taking platform"
88
HOMEPAGE_URL "https://app.vnote.fun"
99
LANGUAGES C CXX)

scripts/update_version.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
exit
88

99
newVersion = sys.argv[1]
10+
shortVersion = re.match('^(\\d+\\.\\d+).', newVersion).group(1)
1011
print("New version: {0}".format(newVersion))
1112

1213
# CMakeList
@@ -25,6 +26,10 @@
2526
print(regExp.sub('\\1VNOTE_VER: ' + newVersion, line), end='')
2627

2728
# Info.plist
29+
regExp = re.compile('(\\s+)<string>(?!12\\.1)\\d+\\.\\d+</string>')
30+
for line in fileinput.input(['src/data/core/Info.plist'], inplace = True):
31+
print(regExp.sub('\\1<string>' + shortVersion + '</string>', line), end='')
32+
2833
regExp = re.compile('(\\s+)<string>\\d+\\.\\d+\\.\\d+</string>')
2934
for line in fileinput.input(['src/data/core/Info.plist'], inplace = True):
3035
print(regExp.sub('\\1<string>' + newVersion + '</string>', line), end='')

src/data/core/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
<key>CFBundleExecutable</key>
2626
<string>vnote</string>
2727
<key>CFBundleShortVersionString</key>
28-
<string>3.17</string>
28+
<string>3.18</string>
2929
<key>CFBundleVersion</key>
30-
<string>3.18.1</string>
30+
<string>3.18.2</string>
3131
<key>NSHumanReadableCopyright</key>
3232
<string>Distributed under LGPL-3.0 license. Copyright (c) 2024 app.vnote.fun</string>
3333
<key>CFBundleIconFile</key>

src/data/core/vnotex.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"metadata" : {
44
"//comment": "When releasing new version, please go through the following configs to check if override is needed.",
55
"//Comment": "markdown_editor#override_viewer_resource",
6-
"version" : "3.18.1"
6+
"version" : "3.18.2"
77
},
88
"core" : {
99
"theme" : "pure",

0 commit comments

Comments
 (0)