Skip to content

Commit

Permalink
build: 1.2.0-RC2
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Oct 31, 2022
1 parent bf15a41 commit 9e12365
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ plugins {
kotlin("jvm") version "1.7.20"
kotlin("plugin.serialization") version "1.7.20"

id("net.mamoe.mirai-console") version "2.13.0-RC"
id("net.mamoe.mirai-console") version "2.13.0-RC2"
id("me.him188.maven-central-publish") version "1.0.0-dev-3"
}

group = "xyz.cssxsh.mirai"
version = "1.2.0-RC"
version = "1.2.0-RC2"

mavenCentralPublish {
useCentralS01()
Expand Down Expand Up @@ -50,12 +50,12 @@ dependencies {
}
// shadowLink("org.jetbrains.skiko:skiko-awt")
implementation("org.jsoup:jsoup:1.15.3")
compileOnly("net.mamoe:mirai-core-utils:2.13.0-RC")
compileOnly("net.mamoe:mirai-core-utils:2.13.0-RC2")
compileOnly("com.google.code.findbugs:jsr305:3.0.2")
//
testImplementation(kotlin("test"))
testImplementation("org.slf4j:slf4j-simple:2.0.3")
testImplementation("net.mamoe:mirai-logging-slf4j:2.13.0-RC")
testImplementation("net.mamoe:mirai-logging-slf4j:2.13.0-RC2")
}

kotlin {
Expand Down
5 changes: 5 additions & 0 deletions src/main/kotlin/xyz/cssxsh/mirai/skia/MiraiSkiaPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ public object MiraiSkiaPlugin : KotlinPlugin(
.substringAfterLast(": ")
logger.warning { "可能缺少相应库文件,请参阅: https://pkgs.org/search/?q=${lib}" }
}
if (message.endsWith(": 无法打开共享对象文件: 没有那个文件或目录")) {
val lib = message.substringBeforeLast(": 无法打开共享对象文件: 没有那个文件或目录")
.substringAfterLast(": ")
logger.warning { "可能缺少相应库文件,请参阅: https://pkgs.org/search/?q=${lib}" }
}
if ("GLIBC_" in message) {
val version = message.substringAfterLast("version `")
.substringBeforeLast("' not found")
Expand Down

0 comments on commit 9e12365

Please sign in to comment.