Try it out. This installer works with most Linux distributions.
Paste your jars into the .tar.gz archive. if you want to Create a menu entry in the "Programs" menu, create the file "YOUR PROGRAM.desktop" and put this script in it
[Desktop Entry] Comment=YOUR COMMENT Name=YOUR PROGRAM
OK, now you can put it in the .tar.gz archive.
Now you need to create the file "install.sh" (the file name is not important, it also works without the -.sh extension)
Here is the code
#!/bin/bash if which java >/dev/null; then< sudo tar xvfz YOUR PROGRAM.tar.gz -C /opt #(Path for Extract Files) mkdir ~/.local/share/applications sudo tar xvfz DESKTOP.tar.gz -C ~/.local/share/applications echo "Program installed.!" else echo "JRE Not Installed..!" fi read exit
Bring all 3 files in one folder, then run the install.sh file (should be marked as executable)
I hope this will be useful to anyone.
lilruchira
source share