igor.wojda
07/03/2023, 5:40 PMexe
file running on windows and bundle everything (Kotlin SDK, Java?) entire Kotlin & Java SDKs inside this bundle to un the app even if Java is not installed in the system?
• Or would it be better to compile Kotlin to JS and pack it together with some kind of JS runtime (which?)?
I would appreciate any feedback and ideas on thisJeff Lockhart
07/03/2023, 5:44 PMigor.wojda
07/03/2023, 5:47 PMhfhbd
07/03/2023, 5:48 PMLandry Norris
07/03/2023, 5:57 PMRobert Jaros
07/03/2023, 5:57 PMsciack
07/04/2023, 12:53 AMAdam S
07/04/2023, 7:49 AMStefan Oltmann
07/16/2023, 12:00 PMAny open source project that can present this sample use case? Can exe be compiled on MacOS?Yes. Windows binary config: https://github.com/Ashampoo/kim/blob/2b35aecd4a8611faf79e5a004af97c8ad5662508/build.gradle.kts#L132C1-L132C1 macOS binary config: https://github.com/Ashampoo/kim/blob/2b35aecd4a8611faf79e5a004af97c8ad5662508/build.gradle.kts#L193C6-L193C6 Main method for both: https://github.com/Ashampoo/kim/blob/main/src/posixMain/kotlin/com/ashampoo/kim/main.kt If you stay with POSIX API and only use Kotlin Multiplatform dependencies that include native you will be fine. AFAIK Ktor has full multiplatform support, so your REST client should work without Java. Things change if you need also an UI with Compose. In that case you need to bundle a JVM.