Skip to content

Commit

Permalink
fix: mod info
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Nov 6, 2024
1 parent 42c8261 commit 7024bc0
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ sourceSets {
}

processResources {
filesMatching('fabric.mod.json') {
expand 'mod_id': mod_id,
'mod_name': mod_name,
'mod_vendor': mod_vendor,
'mod_version': mod_version,
'minecraft_version': minecraft_version,
'loader_version': loader_version
}

inputs.property "version", project.version

dependsOn processJcefResources
Expand Down
4 changes: 4 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ mod_version=1.1.5-1.21.1
maven_group=CCBlueX

loom_version=1.8-SNAPSHOT

mod_id=mcef
mod_name=MCEF (Minecraft Chromium Embedded Framework)
mod_vendor=CCBlueX
18 changes: 18 additions & 0 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"schemaVersion": 1,
"id": "${mod_id}",
"version": "${mod_version}",
"name": "${mod_name}",
"description": "A Minecraft mod and library for adding the Chromium web browser into the game (Minecraft Chromium Embedded Framework).",
"authors": [
"${mod_vendor}"
],
"license": "LGPL 2.1",
"icon": "icon.png",
"environment": "*",
"mixins": [],
"depends": {
"fabricloader": ">=${loader_version}",
"minecraft": ["1.21", "1.21.1"]
}
}
Binary file added src/main/resources/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7024bc0

Please sign in to comment.