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.07k stars 133 forks source link

mac run console app #384

Open akhilmanikandan opened 11 months ago

akhilmanikandan commented 11 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 11 months ago

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

akhilmanikandan commented 11 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 8 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