mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 06:50:08 +08:00
Update core dependencies
This commit is contained in:
parent
2246d906c6
commit
0217405d2a
@ -38,8 +38,11 @@ internal object CoreUpdater {
|
|||||||
println("Updating shadowed-core from V$current -> V$newest, this is a force update")
|
println("Updating shadowed-core from V$current -> V$newest, this is a force update")
|
||||||
this.getProtocolLib()?.delete()
|
this.getProtocolLib()?.delete()
|
||||||
MiraiDownloader
|
MiraiDownloader
|
||||||
.addTask("https://pan.jasonczc.cn/?/mirai/mirai-core-qqandroid/mirai-core-qqandroid-$newest.mp4",getContent("mirai-core-qqandroid-jvm-$newest.jar"))
|
.addTask(
|
||||||
//.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"))
|
"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 {
|
url {
|
||||||
protocol = URLProtocol.HTTPS
|
protocol = URLProtocol.HTTPS
|
||||||
host = "jcenter.bintray.com"
|
host = "jcenter.bintray.com"
|
||||||
path("net/mamoe/mirai-core-qqandroid-jvm/")
|
path("net/mamoe/mirai-core-qqandroid/")
|
||||||
}
|
}
|
||||||
}).asSequence()
|
}).asSequence()
|
||||||
.map { it.value.drop(1).dropLast(1) }
|
.map { it.value.drop(1).dropLast(1) }
|
||||||
@ -85,7 +88,6 @@ internal object CoreUpdater {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
private suspend fun downloadCore(version: String) {
|
private suspend fun downloadCore(version: String) {
|
||||||
/**
|
/**
|
||||||
|
@ -197,8 +197,8 @@ private object WrapperProperties {
|
|||||||
|
|
||||||
private fun gc() {
|
private fun gc() {
|
||||||
GlobalScope.launch {
|
GlobalScope.launch {
|
||||||
while (true) {
|
while (isActive) {
|
||||||
delay(1000 * 60 * 5)
|
delay(1000 * 60)
|
||||||
System.gc()
|
System.gc()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user