diff --git a/build.gradle b/build.gradle index f6024bcdd..dac432b36 100644 --- a/build.gradle +++ b/build.gradle @@ -55,6 +55,7 @@ task updateVersion { def newVersionStr = " const val version = \"" + versionCode + "\"" def updatedContent = new File(versionFileDir).getText('UTF-8').replaceAll(oldVersionStr, newVersionStr) new File(versionFileDir).write(updatedContent, 'UTF-8') + println "Successfully update version inside Comet~" } static def findOldVersionStr(path) { diff --git a/src/main/kotlin/io/github/starwishsama/comet/BotVariables.kt b/src/main/kotlin/io/github/starwishsama/comet/BotVariables.kt index 15749db9b..4a31a5d01 100644 --- a/src/main/kotlin/io/github/starwishsama/comet/BotVariables.kt +++ b/src/main/kotlin/io/github/starwishsama/comet/BotVariables.kt @@ -31,7 +31,7 @@ import java.util.regex.Pattern object BotVariables { lateinit var filePath: File - const val version = "0.6-M1 (5cffdb2)" + const val version = "0.6-M2" /** 作为独立运行时使用的变量, 除 [Comet] 外禁止调用 */ lateinit var bot: Bot