release v3.18.2

This commit is contained in:
Le Tan 2024-08-06 21:56:46 +08:00
parent 5da9268aa7
commit 5e4a6fa72a
7 changed files with 12 additions and 7 deletions

View File

@ -16,7 +16,7 @@ on:
default: false default: false
env: env:
VNOTE_VER: 3.18.1 VNOTE_VER: 3.18.2
CMAKE_VER: 3.24.3 CMAKE_VER: 3.24.3
jobs: jobs:

View File

@ -16,7 +16,7 @@ on:
default: false default: false
env: env:
VNOTE_VER: 3.18.1 VNOTE_VER: 3.18.2
CMAKE_VER: 3.24.3 CMAKE_VER: 3.24.3
jobs: jobs:

View File

@ -16,7 +16,7 @@ on:
default: false default: false
env: env:
VNOTE_VER: 3.18.1 VNOTE_VER: 3.18.2
jobs: jobs:
build: build:

View File

@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 3.20)
set(CMAKE_OSX_DEPLOYMENT_TARGET "12.1" CACHE STRING "Minimum OS X deployment version") set(CMAKE_OSX_DEPLOYMENT_TARGET "12.1" CACHE STRING "Minimum OS X deployment version")
project(VNote project(VNote
VERSION 3.18.1 VERSION 3.18.2
DESCRIPTION "A pleasant note-taking platform" DESCRIPTION "A pleasant note-taking platform"
HOMEPAGE_URL "https://app.vnote.fun" HOMEPAGE_URL "https://app.vnote.fun"
LANGUAGES C CXX) LANGUAGES C CXX)

View File

@ -7,6 +7,7 @@ if len(sys.argv) < 2:
exit exit
newVersion = sys.argv[1] newVersion = sys.argv[1]
shortVersion = re.match('^(\\d+\\.\\d+).', newVersion).group(1)
print("New version: {0}".format(newVersion)) print("New version: {0}".format(newVersion))
# CMakeList # CMakeList
@ -25,6 +26,10 @@ for line in fileinput.input(['.github/workflows/ci-win.yml', '.github/workflows/
print(regExp.sub('\\1VNOTE_VER: ' + newVersion, line), end='') print(regExp.sub('\\1VNOTE_VER: ' + newVersion, line), end='')
# Info.plist # 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>') regExp = re.compile('(\\s+)<string>\\d+\\.\\d+\\.\\d+</string>')
for line in fileinput.input(['src/data/core/Info.plist'], inplace = True): for line in fileinput.input(['src/data/core/Info.plist'], inplace = True):
print(regExp.sub('\\1<string>' + newVersion + '</string>', line), end='') print(regExp.sub('\\1<string>' + newVersion + '</string>', line), end='')

View File

@ -25,9 +25,9 @@
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>vnote</string> <string>vnote</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>3.17</string> <string>3.18</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>3.18.1</string> <string>3.18.2</string>
<key>NSHumanReadableCopyright</key> <key>NSHumanReadableCopyright</key>
<string>Distributed under LGPL-3.0 license. Copyright (c) 2024 app.vnote.fun</string> <string>Distributed under LGPL-3.0 license. Copyright (c) 2024 app.vnote.fun</string>
<key>CFBundleIconFile</key> <key>CFBundleIconFile</key>

View File

@ -3,7 +3,7 @@
"metadata" : { "metadata" : {
"//comment": "When releasing new version, please go through the following configs to check if override is needed.", "//comment": "When releasing new version, please go through the following configs to check if override is needed.",
"//Comment": "markdown_editor#override_viewer_resource", "//Comment": "markdown_editor#override_viewer_resource",
"version" : "3.18.1" "version" : "3.18.2"
}, },
"core" : { "core" : {
"theme" : "pure", "theme" : "pure",