diff --git a/buildSrc/src/main/kotlin/Package.kt b/buildSrc/src/main/kotlin/Package.kt index 1ebc2f120..767ddd9bc 100644 --- a/buildSrc/src/main/kotlin/Package.kt +++ b/buildSrc/src/main/kotlin/Package.kt @@ -2,6 +2,16 @@ object Package { const val group = "com.twidere" const val name = "Twidere X" const val id = "$group.twiderex" - const val versionName = "1.6.0-dev01" - const val versionCode = 56 + val versionName = + "${Version.main}.${Version.mirror}.${Version.patch}${if (Version.revision.isNotEmpty()) "-${Version.revision}" else ""}" + const val copyright = "Copyright (C) TwidereProject and Contributors" + const val versionCode = Version.build + + object Version { + const val main = "1" + const val mirror = "6" + const val patch = "0" + const val revision = "dev01" + const val build = 56 + } } diff --git a/desktop/build.gradle.kts b/desktop/build.gradle.kts index 72f29d451..02002f141 100644 --- a/desktop/build.gradle.kts +++ b/desktop/build.gradle.kts @@ -39,7 +39,9 @@ compose { nativeDistributions { targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb) packageName = Package.name - packageVersion = Package.versionName.split("-").firstOrNull() + packageVersion = "${Package.Version.main}.${Package.Version.mirror}.${Package.versionCode}" + copyright = Package.copyright + licenseFile.set(rootProject.file("LICENSE")) modules("java.sql") // https://github.com/JetBrains/compose-jb/issues/381 modules("jdk.unsupported") modules("jdk.unsupported.desktop")