Skip to content

Commit

Permalink
Fix version numbers in jpackage
Browse files Browse the repository at this point in the history
  • Loading branch information
octylFractal committed Jul 29, 2024
1 parent 7b53d1d commit 5b9b661
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ jlink {
jpackage {
options = listOf("--verbose")
installerOptions = listOf("--verbose")
appVersion = project.version.toString().replace("-SNAPSHOT", "+dev")
// Separate version system since packages require it to be major.minor.build only
val runNumber = providers.environmentVariable("GITHUB_RUN_NUMBER")
.orElse("0")
.map { it.toInt() }
appVersion = "1.0.$runNumber"
}
}

0 comments on commit 5b9b661

Please sign in to comment.