Update core dependencies

This commit is contained in:
Him188 2020-04-13 12:05:13 +08:00
parent 2246d906c6
commit 0217405d2a
2 changed files with 8 additions and 6 deletions

View File

@ -38,8 +38,11 @@ internal object CoreUpdater {
println("Updating shadowed-core from V$current -> V$newest, this is a force update")
this.getProtocolLib()?.delete()
MiraiDownloader
.addTask("https://pan.jasonczc.cn/?/mirai/mirai-core-qqandroid/mirai-core-qqandroid-$newest.mp4",getContent("mirai-core-qqandroid-jvm-$newest.jar"))
//.addTask("https://raw.githubusercontent.com/mamoe/mirai-repo/master/shadow/mirai-core-qqandroid/mirai-core-qqandroid-$newest.jar", getContent("mirai-core-qqandroid-jvm-$newest.jar"))
.addTask(
"https://pan.jasonczc.cn/?/mirai/mirai-core-qqandroid/mirai-core-qqandroid-$newest.mp4",
getContent("mirai-core-qqandroid-jvm-$newest.jar")
)
//.addTask("https://raw.githubusercontent.com/mamoe/mirai-repo/master/shadow/mirai-core-qqandroid/mirai-core-qqandroid-$newest.jar", getContent("mirai-core-qqandroid-jvm-$newest.jar"))
}
}
@ -54,7 +57,7 @@ internal object CoreUpdater {
url {
protocol = URLProtocol.HTTPS
host = "jcenter.bintray.com"
path("net/mamoe/mirai-core-qqandroid-jvm/")
path("net/mamoe/mirai-core-qqandroid/")
}
}).asSequence()
.map { it.value.drop(1).dropLast(1) }
@ -85,7 +88,6 @@ internal object CoreUpdater {
}
/*
private suspend fun downloadCore(version: String) {
/**

View File

@ -197,8 +197,8 @@ private object WrapperProperties {
private fun gc() {
GlobalScope.launch {
while (true) {
delay(1000 * 60 * 5)
while (isActive) {
delay(1000 * 60)
System.gc()
}
}