diff --git a/README.md b/README.md index d322fe31e..7a336c9c1 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,9 @@ Mirai 是一个在全平台下运行,提供 QQ Android 和 TIM PC 协议支持 [mirai-console插件开发快速上手](PluginDocs/ToStart.MD) ### 使用 -#### [下载(download)](https://github.com/mamoe/mirai-console/releases) +**[下载(download)](https://github.com/mamoe/mirai-console/releases)** +请下载最新的 `mirai-console-wrapper-x.x.x-all.jar` + #### 如何启动 如果是打包好的软件, 双击
如果是命令行运行, 请注意运行目录, 推荐cd到jar的文件夹下运行, 运行目录与Console的全部配置文件储存位置有关 diff --git a/gradle.properties b/gradle.properties index 7f495c0b2..6846db10d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,7 @@ kotlin.code.style=official # config miraiVersion=0.29.1 -miraiConsoleVersion=0.3.5 +miraiConsoleVersion=0.3.6 miraiConsoleWrapperVersion=0.1.3 kotlin.incremental.multiplatform=true kotlin.parallel.tasks.in.project=true diff --git a/mirai-console-wrapper/src/main/kotlin/net/mamoe/mirai/console/wrapper/Downloader.kt b/mirai-console-wrapper/src/main/kotlin/net/mamoe/mirai/console/wrapper/Downloader.kt index 5b63a5757..c18460e04 100644 --- a/mirai-console-wrapper/src/main/kotlin/net/mamoe/mirai/console/wrapper/Downloader.kt +++ b/mirai-console-wrapper/src/main/kotlin/net/mamoe/mirai/console/wrapper/Downloader.kt @@ -47,7 +47,7 @@ internal suspend inline fun HttpClient.downloadRequest(url: String): ByteReadCha } } -private val jcenterPath = "https://jcenter.bintray.com/{group}/{project}/{version}/:{project}-{version}.{extension}" +private val jcenterPath = "https://jcenter.bintray.com/{group}/{project}/{version}/{project}-{version}.{extension}" private val aliyunPath = "https://maven.aliyun.com/nexus/content/repositories/jcenter/{group}/{project}/{version}/{project}-{version}.{extension}" diff --git a/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/Command.kt b/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/Command.kt index f0ec8df4c..6be41951f 100644 --- a/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/Command.kt +++ b/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/Command.kt @@ -65,6 +65,7 @@ internal inline fun registerConsoleCommands(builder: CommandBuilder.() -> Unit): return CommandBuilder().apply(builder).register(ConsoleCommandOwner) } + inline fun PluginBase.registerCommand(builder: CommandBuilder.() -> Unit):Command{ return CommandBuilder().apply(builder).register(this.asCommandOwner()) }