From 790ad7f035dcd8d169c8dff5ffeafd2566817a9a Mon Sep 17 00:00:00 2001 From: Him188 Date: Sun, 27 Aug 2023 12:29:56 +0800 Subject: [PATCH] =?UTF-8?q?[docs]=20=E5=A2=9E=E5=8A=A0=20"=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=20dev=20=E5=88=86=E6=94=AF=E7=9A=84=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/UsingSnapshots.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/UsingSnapshots.md b/docs/UsingSnapshots.md index 5da05c047..12b2e0885 100644 --- a/docs/UsingSnapshots.md +++ b/docs/UsingSnapshots.md @@ -91,4 +91,12 @@ plugins { // ... id("net.mamoe.mirai-console") version "2.15.0-build-index-1" } -``` \ No newline at end of file +``` + +## 附录 + +### 获取 dev 分支的最新版本号 + +1. 访问 Mirai Build Index API: 获取 "value" 的值, 例如 `127` +2. 访问 获取由 `/*PROJECT_VERSION_START*/` 和 `/*PROJECT_VERSION_END*/` 包围的主分支版本号, 例如 `2.16.0` +3. 组合得到版本号 `2.16.0-dev-127` \ No newline at end of file