Skip to content

Commit

Permalink
update desktop packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlaster committed Dec 25, 2021
1 parent 9358198 commit 9f9720a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
14 changes: 12 additions & 2 deletions buildSrc/src/main/kotlin/Package.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
4 changes: 3 additions & 1 deletion desktop/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 9f9720a

Please sign in to comment.