Skip to content

Commit

Permalink
Strip version names for windows and macos releases
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed Mar 6, 2024
1 parent bc09272 commit 73d837a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,14 @@ compose.desktop {
modules("java.instrument", "java.management", "java.naming", "java.security.jgss", "jdk.httpserver", "jdk.unsupported")
packageName = appName
packageVersion = "${project.version}"
val strippedVersion = project.version.toString().substringBeforeLast("-")
val iconsRoot = project.file("packaging/icons")
macOS {
packageVersion = strippedVersion
iconFile.set(iconsRoot.resolve("icon.icns"))
}
windows {
packageVersion = strippedVersion
menu = true
shortcut = true
upgradeUuid = "b627d78b-947c-4f5c-9f3b-ae02bfa97d08"
Expand Down

0 comments on commit 73d837a

Please sign in to comment.