aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-09-14 19:02:20 +0200
committernea <romangraef@gmail.com>2022-09-14 19:02:20 +0200
commit9535ae953fc862bd0103eb9974d262f3de6e7611 (patch)
tree9856f0cb95aee526c50dbc584b425394ae4e0506
parent460fbe0001754116fa7407eb6c7345ca22b23704 (diff)
downloadNotEnoughUpdates-9535ae953fc862bd0103eb9974d262f3de6e7611.tar.gz
NotEnoughUpdates-9535ae953fc862bd0103eb9974d262f3de6e7611.tar.bz2
NotEnoughUpdates-9535ae953fc862bd0103eb9974d262f3de6e7611.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": [