Fix: 无法安装带有 Fabric 的非标准 MMC 整合包 (#4034)

- 修复无法安装带有 Fabric 的非标准 MMC 整合包的漏洞
- 在安装时写入当前安装器实现信息和启动器信息,以在后续调试时获得更多信息

Fix #4049
This commit is contained in:
Burning_TNT
2025-09-14 20:50:53 +08:00
committed by GitHub
parent a10e9a04b1
commit a39a23f938
11 changed files with 290 additions and 22 deletions

View File

@@ -32,3 +32,16 @@ dependencies {
testImplementation(libs.jna.platform)
testImplementation(libs.jimfs)
}
tasks.processResources {
listOf(
"HMCLTransformerDiscoveryService",
"HMCLMultiMCBootstrap"
).map { project(":$it").tasks["jar"] as Jar }.forEach { task ->
dependsOn(task)
into("assets/game") {
from(task.outputs.files)
}
}
}