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