Skip to content

Commit 46a8908

Browse files
committed
* 优化获取版本信息的方法
1 parent cc3f2e3 commit 46a8908

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
### 更新日志
22

3-
#### JadeV2.3.0 - 2024-06-18
4-
* 优化数据库父类方法
3+
#### JadeV2.3.1 - 2024-06-18
4+
* 优化获取版本信息的方法
55
---
66

7-
87
<details onclose>
98
<summary>查看更多更新日志</summary>
109

10+
#### JadeV2.3.0 - 2024-06-18
11+
* 优化数据库父类方法
12+
---
13+
14+
1115
#### JadeV2.2.9 - 2024-06-13
1216
* 解决获取父进程异常的bug
1317
---

jade/jade_packing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,8 +1022,7 @@ def packAPP(args):
10221022
def get_app_version():
10231023
try:
10241024
with open("CONTRIBUTING.md","rb") as f:
1025-
content = str(f.read(),encoding="utf-8").split("#### ")[1].split(" - ")[0]
1026-
version = ""
1025+
content = str(f.read(),encoding="utf-8").split(" - ")[0].split("#")[-1].strip()
10271026
if "v" in content and "V" in content:
10281027
version = content.split("V")[-1]
10291028
elif "v" in content:

0 commit comments

Comments
 (0)