瀏覽代碼

release v3.18.2

Le Tan 1 年之前
父節點
當前提交
5e4a6fa72a

+ 1 - 1
.github/workflows/ci-linux.yml

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

+ 1 - 1
.github/workflows/ci-macos.yml

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

+ 1 - 1
.github/workflows/ci-win.yml

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

+ 1 - 1
CMakeLists.txt

@@ -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)

+ 5 - 0
scripts/update_version.py

@@ -7,6 +7,7 @@ if len(sys.argv) < 2:
     exit
 
 newVersion = sys.argv[1]
+shortVersion = re.match('^(\\d+\\.\\d+).', newVersion).group(1)
 print("New version: {0}".format(newVersion))
 
 # 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='')
 
 # 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='')

+ 2 - 2
src/data/core/Info.plist

@@ -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>

+ 1 - 1
src/data/core/vnotex.json

@@ -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",