mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-10 04:16:02 -04:00
不再生成 bss 文件 (#3418)
This commit is contained in:
parent
3bf5204e79
commit
995d3bd4b9
@ -167,24 +167,6 @@ fun createExecutable(suffix: String, header: String) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.processResources {
|
tasks.processResources {
|
||||||
fun convertToBSS(resource: String) {
|
|
||||||
doFirst {
|
|
||||||
val cssFile = File(projectDir, "src/main/resources/$resource")
|
|
||||||
val bssFile = File(projectDir, "build/compiled-resources/${resource.substring(0, resource.length - 4)}.bss")
|
|
||||||
bssFile.parentFile.mkdirs()
|
|
||||||
javaexec {
|
|
||||||
classpath = sourceSets["main"].compileClasspath
|
|
||||||
mainClass.set("com.sun.javafx.css.parser.Css2Bin")
|
|
||||||
args(cssFile, bssFile)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
from("build/compiled-resources")
|
|
||||||
|
|
||||||
convertToBSS("assets/css/root.css")
|
|
||||||
convertToBSS("assets/css/blue.css")
|
|
||||||
|
|
||||||
into("META-INF/versions/11") {
|
into("META-INF/versions/11") {
|
||||||
from(sourceSets["java11"].output)
|
from(sourceSets["java11"].output)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user