From 96e2a8e2e4c30d581af9578859730e777975dfbf Mon Sep 17 00:00:00 2001 From: mzdluo123 Date: Wed, 13 Jan 2021 23:34:46 +0800 Subject: [PATCH 1/2] fix wrong path of device.json --- backend/mirai-console/src/MiraiConsole.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/mirai-console/src/MiraiConsole.kt b/backend/mirai-console/src/MiraiConsole.kt index 7c8cfb1e1..c16aa3b73 100644 --- a/backend/mirai-console/src/MiraiConsole.kt +++ b/backend/mirai-console/src/MiraiConsole.kt @@ -139,6 +139,7 @@ public interface MiraiConsole : CoroutineScope { @Suppress("UNREACHABLE_CODE") private fun addBotImpl(id: Long, password: Any, configuration: BotConfiguration.() -> Unit = {}): Bot { var config = BotConfiguration().apply { + workingDir = rootDir fileBasedDeviceInfo() redirectNetworkLogToDirectory() this.botLoggerSupplier = { @@ -153,6 +154,7 @@ public interface MiraiConsole : CoroutineScope { config = GlobalComponentStorage.run { BotConfigurationAlterer.foldExtensions(config) { acc, extension -> extension.alterConfiguration(id, acc) + } } From 42e9b6edb4b66e293a5cffc49b99052bd2eb206a Mon Sep 17 00:00:00 2001 From: mzdluo123 Date: Thu, 14 Jan 2021 09:30:14 +0800 Subject: [PATCH 2/2] 2.0-RC-dev-2 --- buildSrc/src/main/kotlin/Versions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt index c7e30a6f2..089527ce7 100644 --- a/buildSrc/src/main/kotlin/Versions.kt +++ b/buildSrc/src/main/kotlin/Versions.kt @@ -13,7 +13,7 @@ import org.gradle.api.attributes.Attribute object Versions { const val core = "2.0-RC" - const val console = "2.0-RC" + const val console = "2.0-RC-dev-2" const val consoleGraphical = "0.0.7" const val consoleTerminal = console