Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into jfoenix
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavo committed Nov 1, 2024
2 parents 2c9ed4b + 995d3bd commit dee1e77
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions HMCL/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -172,24 +172,6 @@ fun createExecutable(suffix: String, header: String) {
}

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") {
from(java9.output)
}
Expand Down

0 comments on commit dee1e77

Please sign in to comment.