diff --git a/MODRINTH_CHANGELOG.md b/MODRINTH_CHANGELOG.md index 23bc2ab..f858d80 100644 --- a/MODRINTH_CHANGELOG.md +++ b/MODRINTH_CHANGELOG.md @@ -1 +1 @@ -- Updated my email in the mod's metadata +- Fixed mod version appearing as ${modVersion} diff --git a/README.md b/README.md index 41359ff..1d5bd7d 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,4 @@ You can download this mod on modrinth. [https://modrinth.com/mod/allow-portal-gu 0. Make sure you have git and jdk 21 installed. If not, check these links out: [https://git-scm.com/downloads](https://git-scm.com/downloads), [https://www.oracle.com/pl/java/technologies/downloads](https://www.oracle.com/pl/java/technologies/downloads). You can also try to install these programs with your distro's package manager. 1. Clone the repo: `git clone https://github.com/Blayung/allow-portal-guis.git; cd allow-portal-guis` 2. Compile the mod: `./gradlew build` -3. Now the mod jar file should be here: `./build/libs/allow-portal-guis-1.1.1.jar` +3. Now the mod jar file should be in the `./build/libs` folder. diff --git a/build.gradle b/build.gradle index 16d2572..1a7c0fb 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ dependencies { modImplementation "net.fabricmc:fabric-loader:0.15.11" } -def modVersion = "1.1.1" +def modVersion = "1.1.2" base.archivesName = "allow-portal-guis-" + modVersion @@ -22,6 +22,12 @@ java { jar.from("LICENSE.txt") +processResources { + filesMatching("fabric.mod.json") { + expand "version": modVersion + } +} + modrinth { token = System.getenv("MINOTAUR_PAT") syncBodyFrom = rootProject.file("MODRINTH_README.md").text diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 637b5d5..25b0c23 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -2,12 +2,13 @@ "schemaVersion": 1, "id": "allow-portal-guis", - "version": "${modVersion}", + "version": "${version}", + "name": "Allow Portal GUIs", "description": "This mod allows you to open different guis inside of a nether portal (fe. chat or the inventory), which is impossible to do in vanilla minecraft.", "icon": "assets/allow-portal-guis/icon.png", - "license": "GPL-3.0-only", + "license": "GPL-3.0-only", "authors": [ "Wojciech Paruch " ],