JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.27k stars 1.18k forks source link

Is there a way to package executable files? #1272

Closed olbb closed 1 month ago

olbb commented 3 years ago

I'm trying to use compose desktop to build app on windows. As so far, it works pretty well. But I found I can only get a installer file after packge with the targetFormats as follows. targetFormats(TargetFormat.Exe, TargetFormat.Msi) Is there a way to get an executable file?

akurasov commented 3 years ago

You mean you want not an installer but just an exe file?

olbb commented 3 years ago

You mean you want not an installer but just an exe file?

Yeah, I just want a exe file just like the Uber jar which can run directly on windows.

Is there any way?

carbonhe commented 2 years ago

Can anyone answer it?

StragaSevera commented 2 years ago

It would be great to have this ability!..

AlexeyTsvetkov commented 2 years ago

Am I correct, that the question is about the possibility of creating portable apps? This is not possible at the moment, as far as I know.

olbb commented 2 years ago

Okay thank you! Then, are there plans for future support?

AlexeyTsvetkov commented 2 years ago

No, no such plans at the moment

fl619616995 commented 2 years ago

Using a "createDistributable" might solve your problem

olbb commented 2 years ago

Using a "createDistributable" might solve your problem

Thanks for your reply. I got executable files in binaries folder. Although it requires resources in folder to run, but it that's also better than an installer file.

JavierSegoviaCordoba commented 2 years ago

@olbb can you reopen this please until it is fixed?

Xinerfapre commented 6 months ago

Hello,

At this day, is there still no plan for that?

EchoEllet commented 5 months ago

Until now, it's not built-in in jpackage as far as I know

It's possible using third party tools that create exe, like launch4j

The Gradle plugin

https://github.com/TheBoegl/gradle-launch4j

okushnikov commented 2 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.