-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about creating AppImage for CLI Java applications #345
Comments
@fvarrui Another issue to look into. I think this feature is not already present. |
Let's see if I understand correctly, when running Drifty CLI from menu, does it have to open a terminal window and run your app on it? Right now, you just have to open a terminal and run your AppImage binary, passing any necessary arguments. |
Yeah @fvarrui , you understood correctly. When the user double-click and run the Drifty CLI AppImage, the terminal does not pop up. |
The right .desktop files template for AppImages is https://github.com/fvarrui/JavaPackager/blob/master/src/main/resources/linux/desktop-appimage.vtl. I'm trying something like this: Exec=x-terminal-emulator -e "${info.name} %U"
Terminal=true This will run your CLI app inside your default terminal emulator ... or at least, I think so. I keep testing!
|
ok, let me try in my local environment. Thank you @fvarrui ! |
@fvarrui The command |
@SaptarshiSarkar12 I'm still doing tests, but I think it's the way to go |
JP uses a BASH script as executable (JAR file is concatenated to this script as a payload), and maybe we can change the I'm not really sure if this could have side effects and if it's really a good idea. What do you think?
|
Yeah, it's pretty good Idea. Let me have a look in the project and understand it. @fvarrui . If possible, I might open a PR for this. |
Hey @fvarrui, I have checked your GitHub discussions #292 and have found that jpackage has options to generate installers for CLI apps (like --win-console option for windows OS CLI apps). |
I have added some links and facts in #292 , check them out. They might be of help. |
I'm submitting a…
Short description of the issue/suggestion:
I want to build an AppImage of Drifty CLI, a CLI version of Drifty which requires terminal as an interface between the application and the user. But, the AppImage created by JavaPackager plugin for the CLI, does not open the Application in terminal mode. What property should I set in the pom.xml such that my objectives fulfill?
What is the expected behavior?
A CLI Application to be created, which when run by the user, starts the Java app with terminal as the only interface.
What is the motivation / use case for changing the behavior?
This feature if not already present, will help in distributing terminal based Java applications.
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: