Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavo committed Nov 1, 2024
1 parent 3bf5204 commit e0273c2
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 @@ -167,24 +167,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(sourceSets["java11"].output)
}
Expand Down

0 comments on commit e0273c2

Please sign in to comment.