Skip to content

Commit

Permalink
[docs] 增加 "获取 dev 分支的最新版本号"
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Aug 27, 2023
1 parent 101e473 commit 790ad7f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/UsingSnapshots.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,12 @@ plugins {
// ...
id("net.mamoe.mirai-console") version "2.15.0-build-index-1"
}
```
```

## 附录

### 获取 dev 分支的最新版本号

1. 访问 Mirai Build Index API: <https://build.mirai.mamoe.net/v1/mirai-core/dev/indexes/latest> 获取 "value" 的值, 例如 `127`
2. 访问 <https://github.com/mamoe/mirai/blob/dev/buildSrc/src/main/kotlin/Versions.kt> 获取由 `/*PROJECT_VERSION_START*/``/*PROJECT_VERSION_END*/` 包围的主分支版本号, 例如 `2.16.0`
3. 组合得到版本号 `2.16.0-dev-127`

0 comments on commit 790ad7f

Please sign in to comment.