mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
build: [release] 我来刷版本号辣
This commit is contained in:
parent
7e35fee479
commit
de46ab907f
4
build.py
4
build.py
@ -9,10 +9,12 @@ def get_latest_tag():
|
||||
t = subprocess.check_output(['git', 'tag']).decode('utf-8').strip().split("\n")
|
||||
return t[-1] if (t[-1] != toml.load("./pyproject.toml")["tool"]["poetry"]["version"]) else t[-2]
|
||||
|
||||
def get_specified_tag(index):
|
||||
return subprocess.check_output(['git', 'tag']).decode('utf-8').strip().split("\n")[index]
|
||||
|
||||
def get_changelog():
|
||||
res = subprocess.check_output(
|
||||
['git', 'log', f'{get_latest_tag()}..HEAD', '--pretty=format:"%h %s"']).decode('utf-8').strip()
|
||||
['git', 'log', f'{get_specified_tag(-2)}..get_specified_tag(-1)', '--pretty=format:"%h %s"']).decode('utf-8').strip()
|
||||
res = res.split('\n')
|
||||
featMsg = []
|
||||
fixMsg = []
|
||||
|
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "lx-music-api-server-python"
|
||||
version = "2.0.0.beta-5"
|
||||
version = "2.0.0.beta-6"
|
||||
description = "一个适配 LX Music 的 API 后端实现"
|
||||
authors = ["helloplhm-qwq", "lerdb", "Folltoshe"]
|
||||
license = "MIT"
|
||||
|
Loading…
x
Reference in New Issue
Block a user