Skip to content

Commit

Permalink
Update branding, version number generation
Browse files Browse the repository at this point in the history
  • Loading branch information
comp500 committed Jul 19, 2021
1 parent 17c74a1 commit 30e3421
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@ sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16

archivesBaseName = project.archives_base_name
version = project.mod_version + (grgit != null ? "+rev.${grgit.head().abbreviatedId}" : "")
if (grgit != null) {
if (grgit.describe() == "${project.mod_version}+mc${project.minecraft_version}") {
version = "${project.mod_version}+mc${project.minecraft_version}"
} else {
var dirty = grgit.status().clean ? "" : "-dirty";
version = "${project.mod_version}-dev.${grgit.head().abbreviatedId}+mc${project.minecraft_version}${dirty}"
}
} else {
version = "${project.mod_version}-dev.unknown+mc${project.minecraft_version}"
}
group = project.maven_group

dependencies {
Expand Down
Binary file modified src/main/resources/assets/indium/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"id": "indium",
"version": "${version}",
"name": "Indium",
"description": "Adaptation of Indigo for use with Sodium, implementing the Fabric Rendering API",
"description": "Sodium addon providing support for the Fabric Rendering API, based on Indigo",
"authors": [
"comp500"
],
"contact": {
"sources": "https://github.com/comp500/Indium",
"homepage": "https://github.com/comp500/Indium",
"homepage": "https://modrinth.com/mod/indium",
"issues": "https://github.com/comp500/Indium/issues"
},
"license": "Apache-2.0",
Expand Down

0 comments on commit 30e3421

Please sign in to comment.