Tlaster
06/20/2022, 2:51 AMromainguy
06/20/2022, 2:55 AMTlaster
06/20/2022, 3:02 AMromainguy
06/20/2022, 3:05 AMTlaster
06/20/2022, 3:17 AMromainguy
06/20/2022, 3:19 AMromainguy
06/20/2022, 3:19 AMTlaster
06/20/2022, 3:36 AMromainguy
06/20/2022, 3:39 AMeygraber
06/20/2022, 7:12 AMhfhbd
06/20/2022, 7:21 AMTlaster
06/20/2022, 7:31 AMMichael Paus
06/20/2022, 8:12 AMmcpiroman
06/20/2022, 8:48 AMMichael Paus
06/20/2022, 9:18 AMbuild.gradle.kts
which you really need for your app?
See: https://github.com/JetBrains/compose-jb/blob/master/tutorials/Native_distributions_and_local_execution/README.md#configuring-included-jdk-modules
Something like:
compose.desktop {
application {
mainClass = "MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "jvm"
packageVersion = "1.0.0"
modules("java.base","java.naming","java.prefs","java.scripting","java.sql","jdk.jfr","jdk.unsupported","jdk.unsupported.desktop","<http://jdk.crypto.ec|jdk.crypto.ec>","jdk.localedata")
}
}
}
mcpiroman
06/20/2022, 10:23 AMalexey.tsvetkov
06/20/2022, 10:33 AMdmg
installer (Mac): 76Mb -> 40 Mb (-47%).
Code viewer example showed similar reductions.
Of course reductions are going to depend on an amount of actually used dependencies, but it seems worth it for small & medium sized apps.romainguy
06/20/2022, 4:21 PM