Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
v3.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Feb 18, 2022
1 parent cb48eee commit 45dd1c7
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .changelog/v3.0.8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
real version: `v0.0.8`
simbot-mirai version: `v3.0.0.preview.3.0-292.0.1-SNAPSHOT`

- 增加部分错误信息。
- 完善证书说明。

## 其他说明
#### 版本号
目前版本 `v3.0.8` 等同于 `v0.0.8`, 请在脑海中自动将版本最前的数字-3。
由于 `macOS`(`dmg` & `pkg`) 打包必须保证版本号符合规则: `MAJOR[.MINOR][.PATCH]` 且:
- `MAJOR` 是大于0的数字;
- `MINOR` 是一个可选的非负整数;
- `PATCH` 是一个可选的非负整数;
因此对于`dmg``pkg`文件来说,不能使用最大版本号小于0的版本。因此选择将 `MAJOR` 数字与当前环境下 `simbot` 对应的 `MAJOR` 一致,也就是 `3`

有关于其他文件的版本说明请参考 [compose-jb/tutorials/Building native distribution/Specifying package version](https://github.com/JetBrains/compose-jb/tree/master/tutorials/Native_distributions_and_local_execution#specifying-package-version)

<hr>


34 changes: 31 additions & 3 deletions src/main/kotlin/love/forte/simbot/mlh/window/CerTip.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fun ColumnScope.tip() {
)

//region 1.selenium
subTitle("1. selenium")
subTitle("1. Selenium")


Row {
Expand All @@ -58,18 +58,46 @@ fun ColumnScope.tip() {
}
//endregion

subTitle("2. webdrivermanager")
subTitle("2. WebDriver Manager")

Row {
ClickableTextWithLinks {
withStyle(ParagraphStyle(
textIndent = TextIndent(firstLine = 40.sp)
)) {
append("ABC")
append("浏览器驱动的使用与安装,是通过")
appendLink("WebDriver Manager", "https://github.com/bonigarcia/webdrivermanager")
append("实现的。你可以在selenium的文档")
appendLink("安装浏览器驱动", "https://www.selenium.dev/zh-cn/documentation/webdriver/getting_started/install_drivers/#1-%E9%A9%B1%E5%8A%A8%E7%AE%A1%E7%90%86%E8%BD%AF%E4%BB%B6")
append("中找到其对 WebDriver Manager 的说明与介绍。")
}
}
}

subTitle("3. BrowserMob Proxy")

Row {
ClickableTextWithLinks {
withStyle(ParagraphStyle(
textIndent = TextIndent(firstLine = 40.sp)
)) {
append("对于滑动验证码来讲,此工具需要对所控制的浏览器进行请求捕获,因此需要使用到代理(Proxy)来监控指定请求。此工具所使用的进行代理的依赖为")
appendLink("BrowserMob Proxy", "https://github.com/lightbody/browsermob-proxy#readme")
append("。你可以在说明中的 ")
appendLink("Using With Selenium", "https://github.com/lightbody/browsermob-proxy#using-with-selenium")
append(" 处查看BrowserMob Proxy对Selenium的支持。\n\n")
append("同样的,下文中的 ")
appendLink("SSL Support", "https://github.com/lightbody/browsermob-proxy#ssl-support")
append(" 描述了对于SSH的支持以及 ")
appendLink("ca-certificate-rsa.cer", "https://github.com/lightbody/browsermob-proxy/blob/master/browsermob-core/src/main/resources/sslSupport/ca-certificate-rsa.cer")
append(" 文件的说明。\n\n")
append("因为滑动验证等相关链接是https的,因此如果想要使用代理,则需要安装此证书并将其设为信任证书,且建议在不需要使用此工具后移除此证书。")
append("未来也许会支持使用者生成自定义证书来提供更安全的使用。")
}
}

}

}

@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ private fun prepareBrowserDriver(state: PrepareBrowserDriverState) {
if (state.runState.solver == null) {
LaunchedEffect(Unit) {
try {
throw IllegalStateException("test!")
// 准备驱动
val solver = doPrepareBrowserDriver(state)
state.step = "selenium login solver准备完成"
Expand Down

0 comments on commit 45dd1c7

Please sign in to comment.