diff --git a/build.py b/build.py index b433b51..54fa8e2 100644 --- a/build.py +++ b/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 = [] diff --git a/pyproject.toml b/pyproject.toml index b8b00b2..feb3e09 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"