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.
|
|
|
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id "org.jetbrains.kotlin.multiplatform"
|
|
|
|
id "org.jetbrains.compose"
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
jvm {
|
|
|
|
}
|
|
|
|
sourceSets {
|
|
|
|
named("jvmMain") {
|
|
|
|
dependencies {
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib")
|
|
|
|
implementation(compose.desktop.currentOs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compose.desktop {
|
|
|
|
application {
|
|
|
|
mainClass = "MainKt"
|
|
|
|
nativeDistributions {
|
|
|
|
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
|
|
|
|
|
|
|
|
packageVersion = "1.0.0"
|
|
|
|
packageName = "TestPackage"
|
|
|
|
description = "Test description"
|
|
|
|
copyright = "Test Copyright Holder"
|
|
|
|
vendor = "Test Vendor"
|
|
|
|
|
|
|
|
linux {
|
|
|
|
shortcut = true
|
|
|
|
packageName = "test-package"
|
|
|
|
debMaintainer = "example@example.com"
|
|
|
|
menuGroup = "menu-group"
|
|
|
|
}
|
|
|
|
windows {
|
|
|
|
console = true
|
|
|
|
dirChooser = true
|
|
|
|
perUserInstall = true
|
|
|
|
shortcut = true
|
|
|
|
menu = true
|
|
|
|
menuGroup = "compose"
|
|
|
|
upgradeUuid = "2d6ff464-75be-40ad-a256-56420b9cc374"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|