Skip to content

Commit

Permalink
Merge pull request #190 from TCreutzenberg/bug/construoGameVersion
Browse files Browse the repository at this point in the history
Fix game version in Construo distribution
  • Loading branch information
tommyettinger authored Jul 31, 2024
2 parents 72b0348 + 3d43d10 commit bf1addd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ ${plugins.joinToString(separator = "\n") { " apply plugin: '$it'" }}
}
subprojects {
version = '${project.advanced.version}'
version = '${'$'}gameVersion'
ext.appName = '${project.basic.name}'
repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/gdx/liftoff/data/platforms/Lwjgl3.kt
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ construo {
// human-readable name, used for example in the `.app` name for macOS
humanName.set(appName)
// Optional, defaults to project version
version.set("0.0.0")
version.set('${'$'}gameVersion')
targets.configure {
create("linuxX64", Target.Linux) {
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/gdx/liftoff/data/project/Project.kt
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ class Project(
private fun saveProperties() {
// Adding libGDX version property:
properties["gdxVersion"] = advanced.gdxVersion
properties["gameVersion"] = advanced.version
PropertiesFile(properties).save(basic.destination)
}

Expand Down

0 comments on commit bf1addd

Please sign in to comment.