Skip to content

Commit

Permalink
change: Update archive name and metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmangohands committed Nov 6, 2020
1 parent d938f3b commit 6c67498
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
13 changes: 9 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
11 changes: 6 additions & 5 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6c67498

Please sign in to comment.