Add App version in the admin screen.
This commit is contained in:
parent
193b0d85d5
commit
05cc533cbf
4 changed files with 31 additions and 4 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import com.codingfeline.buildkonfig.compiler.FieldSpec.Type.STRING
|
||||
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
||||
|
||||
plugins {
|
||||
|
|
@ -5,8 +6,11 @@ plugins {
|
|||
alias(libs.plugins.composeMultiplatform)
|
||||
alias(libs.plugins.kotlinMultiplatform)
|
||||
alias(libs.plugins.kotlinSerialization)
|
||||
alias(libs.plugins.buildkonfig)
|
||||
}
|
||||
|
||||
fun getVersion() = "1.3.0"
|
||||
|
||||
kotlin {
|
||||
jvm("desktop")
|
||||
|
||||
|
|
@ -59,6 +63,14 @@ kotlin {
|
|||
}
|
||||
}
|
||||
|
||||
buildkonfig {
|
||||
packageName = "com.pixelized.desktop.lwa"
|
||||
|
||||
defaultConfigs {
|
||||
buildConfigField(STRING, "version", getVersion())
|
||||
}
|
||||
}
|
||||
|
||||
// https://github.com/JetBrains/compose-multiplatform/blob/master/tutorials/Native_distributions_and_local_execution/README.md#basic-usage
|
||||
compose.desktop {
|
||||
application {
|
||||
|
|
@ -68,7 +80,7 @@ compose.desktop {
|
|||
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
|
||||
|
||||
packageName = "Table de Lwa"
|
||||
packageVersion = "1.3.0"
|
||||
packageVersion = getVersion()
|
||||
description = "Application de support au jeux de rôle dans l'univers de Lwa."
|
||||
copyright = "© 2020 Pixelized. All rights reserved."
|
||||
vendor = "Pixelized"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue