You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
4 years ago
|
import org.jetbrains.compose.compose
|
||
|
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
||
|
|
||
|
plugins {
|
||
|
kotlin("multiplatform") // kotlin("jvm") doesn't work well in IDEA/AndroidStudio (https://github.com/JetBrains/compose-jb/issues/22)
|
||
|
id("org.jetbrains.compose")
|
||
|
}
|
||
|
|
||
|
kotlin {
|
||
|
jvm {
|
||
|
withJava()
|
||
|
}
|
||
|
|
||
|
sourceSets {
|
||
|
named("jvmMain") {
|
||
|
dependencies {
|
||
|
implementation(compose.desktop.currentOs)
|
||
|
implementation(project(":common"))
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
compose.desktop {
|
||
|
application {
|
||
|
mainClass = "org.jetbrains.compose.demo.widgets.MainKt"
|
||
|
|
||
|
nativeDistributions {
|
||
|
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
|
||
|
packageName = "ComposeWidgetsGallery"
|
||
4 years ago
|
packageVersion = "1.0.0"
|
||
4 years ago
|
|
||
|
windows {
|
||
|
menu = true
|
||
|
// see https://wixtoolset.org/documentation/manual/v3/howtos/general/generate_guids.html
|
||
|
upgradeUuid = "a61b72be-1b0c-4de5-9607-791c17687428"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|