aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-09-14 19:02:20 +0200
committernea <romangraef@gmail.com>2022-10-06 03:01:16 +0200
commit70b2842bf60b8f61923d21e91b8ef845b86384b3 (patch)
tree336f5f94a5b06f63da6a0d9523acbfa30c7c8b46
parentcf992d9ded578a27407ab0e4b9353cdfc52eb682 (diff)
downloadNotEnoughUpdates-70b2842bf60b8f61923d21e91b8ef845b86384b3.tar.gz
NotEnoughUpdates-70b2842bf60b8f61923d21e91b8ef845b86384b3.tar.bz2
NotEnoughUpdates-70b2842bf60b8f61923d21e91b8ef845b86384b3.zip
Add version to mock mod manifests as well
Courtesy-off: MultiMC
-rw-r--r--build.gradle.kts2
-rw-r--r--src/main/resources/META-INF/mods.toml2
-rw-r--r--src/main/resources/fabric.mod.json2
3 files changed, 3 insertions, 3 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 566a403a..deb740f5 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -162,7 +162,7 @@ tasks.assemble.get().dependsOn(remapJar)
tasks.processResources {
from(tasks["generateBuildFlags"])
- filesMatching("mcmod.info") {
+ filesMatching(listOf("mcmod.info", "fabric.mod.json", "META-INF/mods.toml")) {
expand(
"version" to project.version, "mcversion" to "1.8.9"
)
diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml
index 281faf65..412917d1 100644
--- a/src/main/resources/META-INF/mods.toml
+++ b/src/main/resources/META-INF/mods.toml
@@ -5,7 +5,7 @@ license = "LGPL"
[[mods]]
modId="notenoughupdateserrordisplay"
-version="99.99"
+version="${version}"
displayName="NotEnoughUpdates (1.8.9)"
description='''
This mod description is only here to warn you about using the wrong version of Minecraft and Forge.
diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json
index 8dd63bf3..0123ad91 100644
--- a/src/main/resources/fabric.mod.json
+++ b/src/main/resources/fabric.mod.json
@@ -1,6 +1,6 @@
{
"id": "notenoughupdates",
- "version": "9999.0",
+ "version": "${version}",
"schemaVersion": 1,
"entrypoints": {
"main": [