https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
l

Lubomir Pisk

02/28/2024, 9:04 PM
Hello, I have Compose Desktop app and function
Copy code
System.getProperty("compose.application.resources.dir")
that returns null. import org.jetbrains.compose.desktop.application.dsl.TargetFormat plugins { id("org.jetbrains.compose") _kotlin_("multiplatform") _kotlin_("plugin.serialization") } kotlin { jvm() sourceSets { jvmMain { dependencies { implementation(compose.desktop.currentOs) implementation(compose.desktop.common) } } } } compose.desktop { application { mainClass = "MainKt" javaHome = "/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home" nativeDistributions { appResourcesRootDir.set(project.layout.projectDirectory.dir("resources")) targetFormats( TargetFormat.Dmg, TargetFormat.Pkg, TargetFormat.Exe, TargetFormat.Msi ) } } } Do you know where is a problem?
z

Zach Klippenstein (he/him) [MOD]

02/29/2024, 5:24 PM
Please keep larger code snippets to the thread to keep the main channel view more readable, thanks!
5 Views