Skip to content

Commit

Permalink
release v3.18.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tamlok committed Aug 6, 2024
1 parent 5da9268 commit 5e4a6fa
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
default: false

env:
VNOTE_VER: 3.18.1
VNOTE_VER: 3.18.2
CMAKE_VER: 3.24.3

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
default: false

env:
VNOTE_VER: 3.18.1
VNOTE_VER: 3.18.2
CMAKE_VER: 3.24.3

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
default: false

env:
VNOTE_VER: 3.18.1
VNOTE_VER: 3.18.2

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 3.20)
set(CMAKE_OSX_DEPLOYMENT_TARGET "12.1" CACHE STRING "Minimum OS X deployment version")

project(VNote
VERSION 3.18.1
VERSION 3.18.2
DESCRIPTION "A pleasant note-taking platform"
HOMEPAGE_URL "https://app.vnote.fun"
LANGUAGES C CXX)
Expand Down
5 changes: 5 additions & 0 deletions scripts/update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
exit

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

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

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

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='')
Expand Down
4 changes: 2 additions & 2 deletions src/data/core/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
<key>CFBundleExecutable</key>
<string>vnote</string>
<key>CFBundleShortVersionString</key>
<string>3.17</string>
<string>3.18</string>
<key>CFBundleVersion</key>
<string>3.18.1</string>
<string>3.18.2</string>
<key>NSHumanReadableCopyright</key>
<string>Distributed under LGPL-3.0 license. Copyright (c) 2024 app.vnote.fun</string>
<key>CFBundleIconFile</key>
Expand Down
2 changes: 1 addition & 1 deletion src/data/core/vnotex.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"metadata" : {
"//comment": "When releasing new version, please go through the following configs to check if override is needed.",
"//Comment": "markdown_editor#override_viewer_resource",
"version" : "3.18.1"
"version" : "3.18.2"
},
"core" : {
"theme" : "pure",
Expand Down

0 comments on commit 5e4a6fa

Please sign in to comment.