build(minecraft): Use new logo in Minecraft mods

This commit is contained in:
2025-11-04 22:30:52 +01:00
parent e7764585eb
commit 47ad406560
4 changed files with 54 additions and 52 deletions

View File

@@ -140,40 +140,16 @@ afterEvaluate {
}
tasks.named<Copy>("processResources") {
inputs.property("id", project.name)
inputs.property("version", project.version)
inputs.property("name", properties["module.name"])
inputs.property("description", properties["module.description"])
inputs.property("repoUrl", properties["git.url"])
from(project.layout.settingsDirectory.dir("../tweed5-minecraft/mod-template/resources")) {
expand(mapOf(
"id" to project.name.replace('-', '_'),
"version" to project.version,
"name" to properties["module.name"].toString(),
"description" to properties["module.description"],
"repoUrl" to properties["git.url"],
))
}
val processMinecraftModResources = tasks.named<Sync>("processMinecraftModResources")
dependsOn(processMinecraftModResources)
from(processMinecraftModResources.get().destinationDir)
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
tasks.named<Copy>("processTestmodResources") {
inputs.property("id", project.name)
inputs.property("version", project.version)
inputs.property("name", properties["module.name"])
inputs.property("description", properties["module.description"])
inputs.property("repoUrl", properties["git.url"])
from(project.layout.settingsDirectory.dir("../tweed5-minecraft/mod-template/resources")) {
expand(mapOf(
"id" to project.name.replace('-', '_') + "_testmod",
"version" to project.version,
"name" to properties["module.name"].toString() + " (test mod)",
"description" to properties["module.description"],
"repoUrl" to properties["git.url"],
))
}
val processMinecraftTestmodResources = tasks.named<Sync>("processMinecraftTestmodResources")
dependsOn(processMinecraftTestmodResources)
from(processMinecraftTestmodResources.get().destinationDir)
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

View File

@@ -18,7 +18,7 @@
"id": "tweed5",
"name": "Tweed 5",
"description": "Configuration focused libraries",
"icon": "assets/tweed4_base/icon.png",
"icon": "assets/tweed5/logo-48.png",
"badges": [
"library"
]
@@ -26,7 +26,7 @@
},
"modmenu:api": true
},
"icon": "assets/tweed5/icon.png",
"icon": "assets/tweed5/logo-48.png",
"id": "${id}",
"name": "${name}",
"description": "${description}",