From 6c67498b59bede5b169706b5cb778498927cfdc2 Mon Sep 17 00:00:00 2001 From: mrmangohands Date: Wed, 4 Nov 2020 23:35:01 -0800 Subject: [PATCH] change: Update archive name and metadata --- build.gradle | 13 +++++++++---- src/main/resources/fabric.mod.json | 11 ++++++----- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index e0a9ff58f3..04e650d007 100644 --- a/build.gradle +++ b/build.gradle @@ -5,15 +5,20 @@ plugins { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 -archivesBaseName = "${project.archives_base_name}-mc${project.minecraft_version}" -version = project.mod_version +archivesBaseName = "sodium-${project.minecraft_version}-backport-fabric" +version = project.mod_version + "-SNAPSHOT" group = project.maven_group def build_release = System.getenv("BUILD_RELEASE") == "true" def build_id = System.getenv("BUILD_ID") +def action = System.getenv("GITHUB_ACTIONS") -if (!build_release) { - version += "-SNAPSHOT" +def getDate() { + return new Date().format('yyyy-MM-dd') +} + +if (action != null) { + version += "-" + getDate() } if (build_id != null) { diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index fe6b2ad73b..a9af1977e4 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -2,14 +2,15 @@ "schemaVersion": 1, "id": "sodium", "version": "${version}", - "name": "Sodium", - "description": "Sodium is an free and open-source optimization mod for Minecraft which improves frame rates and reduces lag spikes.", + "name": "Sodium 1.16.1 Backport", + "description": "Sodium is a free and open-source optimization mod for Minecraft which improves frame rates and reduces lag spikes.\nThis is an unofficial backport of JellySquid's original mod.", "authors": [ - "JellySquid" + "MrMangoHands" ], "contact": { - "homepage": "https://jellysquid.me", - "sources": "https://github.com/jellysquid3/sodium" + "homepage": "https://github.com/mrmangohands/sodium-fabric", + "issues": "https://github.com/mrmangohands/sodium-fabric/issues", + "sources": "https://github.com/mrmangohands/sodium-fabric" }, "license": "LGPL-3.0-only", "icon": "assets/sodium/icon.png",