version name is now git commit with fixed 10 chars

This commit is contained in:
Moritz Zwerger 2024-01-22 03:11:27 +01:00
parent 9fae83927a
commit c9e985204c
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
3 changed files with 5 additions and 3 deletions

View File

@ -447,7 +447,7 @@ fun loadGit() {
stable = true
tag.name
} else {
commit.id.substring(0, 9)
commit.id.substring(0, 10)
}
if (!git.status().isClean) {
nextVersion += "-dirty"

View File

@ -12,7 +12,8 @@
# This software is not affiliated with Mojang AB, the original developer of Minecraft.
#
VERSION=$(git rev-parse --short HEAD)
VERSION=$(git rev-parse HEAD)
VERSION=${VERSION:0:10}
curl \
--form-string "stable=false" \

View File

@ -12,7 +12,8 @@
# This software is not affiliated with Mojang AB, the original developer of Minecraft.
#
VERSION=$(git rev-parse --short HEAD)
VERSION=$(git rev-parse HEAD)
VERSION=${VERSION:0:10}
curl \
-X POST \