Hey folks, I’m working on a Kotlin Multiplatform (...
# multiplatform
b
Hey folks, I’m working on a Kotlin Multiplatform (KMP) Desktop project and I want to share it with others as a Windows executable (.exe) so it can run on any PC without needing Android Studio. Can anyone guide me on: • How to export or generate a .exe build from a KMP Desktop project.
m
./gradlew packageReleaseDistributionForCurrentOS Try this
b
I have tried this method multiple times. The build process takes nearly half an hour, but the .exe file is still not generated.
m
There is something wrong with your project setup. I'd advise you to create a demo project with one of the wizards and do the build there, just to get a feeling how it works and how long it normally takes. Also, are you sure that you really want an exe file? All you need is an installer which you can give to others so that they can install your software on their systems. (The .exe mentioned in the docs is an installer exe and not your program exe file.)