Skip to content

Commit

Permalink
Extend version number with a short commit hash in commits without a v…
Browse files Browse the repository at this point in the history
…ersion tag
  • Loading branch information
Borewit committed Oct 3, 2023
1 parent 1948176 commit 70c93c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ gitVersioning.apply {
version = '${ref.version}'
}
branch('.+') {
version = '${describe.tag.version}-${describe.distance}'
version = '${describe.tag.version}-${describe.distance}-${commit.short}'
}
}

Expand Down Expand Up @@ -178,8 +178,7 @@ jlink {
jvmArgs = ['-splash:images/listfixSplashScreen.png']
def currentOs = org.gradle.internal.os.OperatingSystem.current()
icon = currentOs.windows ? pathFavicon : pathPngIcon
// version = project.version.findIndexOf('-') == -1 ? project.version : project.version.subString(0, project.version.findIndexOf('-'))
version = project.version.toString().replace("-", ".")
version = project.version.toString().substring(0, project.version.toString().lastIndexOf("-") == -1 ? project.version.toString().length() : project.version.toString().lastIndexOf("-")).replace("-", ".")
description = 'Fix and repairs broken playlist'
// imageOptions += ['--win-console']
installerOptions += [
Expand Down

0 comments on commit 70c93c1

Please sign in to comment.