compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Is there a way to package executable files?

Open olbb opened this issue 3 years ago • 11 comments

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?

olbb avatar Oct 19 '21 08:10 olbb

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

akurasov avatar Oct 28 '21 12:10 akurasov

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?

olbb avatar Oct 28 '21 16:10 olbb

Can anyone answer it?

carbonhe avatar Dec 08 '21 11:12 carbonhe

It would be great to have this ability!..

StragaSevera avatar Jan 15 '22 13:01 StragaSevera

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.

AlexeyTsvetkov avatar Jan 17 '22 15:01 AlexeyTsvetkov

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

olbb avatar Jan 18 '22 01:01 olbb

No, no such plans at the moment

AlexeyTsvetkov avatar Jan 18 '22 05:01 AlexeyTsvetkov

Using a "createDistributable" might solve your problem

fl619616995 avatar Mar 10 '22 06:03 fl619616995

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.

olbb avatar Apr 01 '22 14:04 olbb

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

JavierSegoviaCordoba avatar Oct 17 '22 13:10 JavierSegoviaCordoba

Hello,

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

Xinerfapre avatar Apr 23 '24 20:04 Xinerfapre

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

EchoEllet avatar May 31 '24 13:05 EchoEllet

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

okushnikov avatar Aug 26 '24 15:08 okushnikov