improved setup on linux w/ desktop shortcuts and launcher

This commit is contained in:
2021-12-05 03:39:35 -03:00
parent 338a61a284
commit 91499a5789
70 changed files with 23 additions and 8302 deletions
+11
View File
@@ -0,0 +1,11 @@
[Desktop Entry]
Encoding=UTF-8
Version=1.0
#Name[en_US]=Librography
Name=Librography
Comment=Librography Library Manager
#Exec=command arguments
Exec= sh /opt/Librography/Librography.sh
Categories=Application;Office;Education;
Type=Application
#Icon=/path/to/custom/icon
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
pwd
java -jar /opt/Librography/Librography.jar
+6 -2
View File
@@ -1,13 +1,17 @@
#!/bin/sh
sudo rm -rf /opt/Librography
mkdir /opt
sudo pacman -S 7zip
sudo pacman -S p7zip
sudo 7z x ../setup/data -o/opt/ -aoa
sudo chown root -R /opt/Librography
sudo chmod 777 -R /opt/
sudo chmod 777 -R /opt/Librography
cp DBType /opt/Librography/
#touch /opt/Librography/DBType
#echo "mysql" >> /opt/Librography/DBType
#sed -i 's/^[^0-9]*//' /opt/Librography/DBType
cp ../dist/Librography.jar /opt/Librography/
cp Librography.sh /opt/Librography/
sudo chmod a+rx /opt/Librography/Librography.jar
#pause