fvarrui / JavaPackager

:package: Gradle/Maven plugin to package Java applications as native Windows, MacOS, or Linux executables and create installers for them.
GNU General Public License v3.0
1.03k stars 130 forks source link

mac run console app #384

Open akhilmanikandan opened 9 months ago

akhilmanikandan commented 9 months ago

I'm submitting a…

Short description of the issue/suggestion:

How to run packaged console app in terminal for mac

Currently when console app runs in mac no console or terminal is opened just icon appears in dock.

fvarrui commented 9 months ago

Hi @akhilmanikandan! Maybe is open /path/to/My.app what you are looking for?

akhilmanikandan commented 9 months ago

my java app is a console application, i realise now to open in console mode i have to put the path My.app/Content/MacOs/Universalapplicationstub

I was expecting like in windows when you double click it opens up in a terminal by default.

any way to change that behavior

fvarrui commented 6 months ago

my java app is a console application, i realise now to open in console mode i have to put the path My.app/Content/MacOs/Universalapplicationstub

I was expecting like in windows when you double click it opens up in a terminal by default.

any way to change that behavior

Not sure, maybe we can include a terminal mode for macOS, so when double clicking your app, universalJavaApplicationStub startuo script opens a terminal and runs your app inside