build: Linux Package Reworked

New Linux Package, data folder moved to where the user have the rights to edit.
This commit is contained in:
Andreas Stallinger
2015-09-07 10:27:34 +02:00
parent 1ba802dd9b
commit c8679dabbe
29 changed files with 51 additions and 56 deletions
Regular → Executable
+6 -14
View File
@@ -1,17 +1,9 @@
#!/bin/sh
appname=`basename $0 | sed s,\.sh$,,`
dirname=`dirname $0`
echo $dirname
tmp="${dirname#?}"
echo $tmp
if [ "${dirname%$tmp}" != "/" ]; then
dirname=$PWD/$dirname
echo $dirname
if [ ! -d "~/.config/coati" ]; then
# Control will enter here if $DIRECTORY doesn't exist.
cp -r /usr/local/share/coati/.config/coati ~/.config/coati
echo "First start of Coati from this user, copy default configfiles to ~/.config/coati"
fi
LD_LIBRARY_PATH=$dirname/lib
export LD_LIBRARY_PATH
echo $LD_LIBRARY_PATH
$dirname/$appname
export LD_LIBRARY_PATH=/usr/local/share/coati/lib
cd ~/.config/coati && exec /usr/local/share/coati/Coati
+2 -3
View File
@@ -3,9 +3,8 @@ Name=Coati
GenericName=Coati
X-GNOME-FullName=Coati
Comment=Code Explorer
Exec=/usr/share/coati/Coati.sh %u
Exec=/usr/local/bin/coati
Icon=coati
Path=/usr/share/coati/
Terminal=true
Type=Application
StartupNotify=true
StartupNotify=true
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.