forked from AxTps/Starlight_Lancher
feat: complete hosted mod sync and launcher interface updates
Add pack sync markers, tagged mod updates, parallel progress, JWT downloads and retry recovery. Include pending onboarding, about scene, compatibility data pack and download fixes.
This commit is contained in:
@ -63,6 +63,13 @@ val authlibInjector by tasks.registering {
|
||||
outputs.file(output)
|
||||
|
||||
doLast {
|
||||
val cached = output.get().asFile
|
||||
if (cached.isFile) {
|
||||
val checksum = MessageDigest.getInstance("SHA-256")
|
||||
.digest(cached.readBytes())
|
||||
.joinToString("") { "%02x".format(it) }
|
||||
if (checksum == inputs.properties["sha256"]) return@doLast
|
||||
}
|
||||
val bytes = uri(
|
||||
"https://authlib-injector.yushi.moe/artifact/56/authlib-injector-1.2.8.jar",
|
||||
).toURL().readBytes()
|
||||
|
||||
Reference in New Issue
Block a user