tomassirio / easyinstaller

It is a command-line tool that allows you to install commonly used applications with a single command. It is a Spring Boot application that uses Spring Shell to provide a command-line interface to the user. The application is designed to be extensible, so you can easily add new installers to the list of supported applications.
8 stars 3 forks source link

Verify if Applications are already installed before installing them #5

Open tomassirio opened 2 months ago

tomassirio commented 2 months ago

Currently, Easy Installer tries to install any application the user selects via the command shell. It'd be better for the installer to check previously if the application is already installed on the machine.

The best case scenario for this would be the@PackageManager applications.

Logic:

if application is installed:
      skip
else
     install

Definition of Done: No application already installed in the user's computer is reinstalled

pa1narendra commented 1 month ago

Assign this to me, I will do it

tomassirio commented 1 month ago

Assigned. Have fun!

Let me know if you need help

pa1narendra commented 1 month ago

@tomassirio I am getting errors during project setup

pa1narendra commented 1 month ago

While installing the dependencies I am getting errors , should I do something before installing the dependencies ? Or do I need to know some other thing to install properly

tomassirio commented 1 month ago

Can you send me the command you are running and the error you are getting?

pa1narendra commented 1 month ago

Can you send me the command you are running and the error you are getting?

do we need kotlin version 1.9.24 strictly or any version above it is also fine

pa1narendra commented 1 month ago

I got this error on running this command ./mvnw clean install, and I even tried ./mvnw install , but still getting this error

image

image

Please tell me how to fix this @tomassirio

tomassirio commented 1 month ago

I believe you are running an older version of the JDK. By the error you are getting, you must be using Java 11. This project was built with Java 17, so you might need to update your JDK.

Try running a java --version and check if my hypothesis is correct.

I got the info from here.

You should be able to download a new version via IntelliJ. Otherwise, I cannot recommend sdkman! enough. It was a game-changer for me

pa1narendra commented 1 month ago

I updated the jdk version to 17 still facing the same issue

tomassirio commented 1 month ago

could you run a java --version in the intelliJ's terminal?

pa1narendra commented 1 month ago

I don't have Intellij, I am using linux , here is the java version that I installed

image

pa1narendra commented 1 month ago

@tomassirio Any updates on this ?

tomassirio commented 1 month ago

Hi @pa1narendra, I've been busy this week. I haven't checked what the issue might be as I don't have a computer with Debian close by nor did I have the time to try it with a VM.

I still believe it's a local issue but unfortunately don't have the resources to replicate it now