fix linux installer

This commit is contained in:
Lukas Neubert
2022-04-05 03:33:43 -04:00
parent b03d20758a
commit b12a040c92
3 changed files with 11 additions and 14 deletions
+2 -1
View File
@@ -75,6 +75,8 @@ Now run SavvyCAN
./SavvyCAN
```
On linux systems you can run `./install.sh` to create a desktop shortcut.
### Compiling in debug mode for additional information
```sh
@@ -115,4 +117,3 @@ signal by juli from the Noun Project
signal by yudi from the Noun Project
Death by Adrien Coquet from the Noun Project
+2 -2
View File
@@ -3,8 +3,8 @@ Type=Application
Name=SavvyCAN
GenericName=CANBus reverse engineering tool
Comment=Facilitates reverse engineering of canbus captures
Exec=SavvyCAN
Icon=SavvyCAN
Exec=<DIR>/SavvyCAN
Icon=<DIR>/icons/SavvyIcon.png
Terminal=false
Categories=Development;Electronics;IDE;
MimeType=text/x-application;
+2 -6
View File
@@ -1,16 +1,12 @@
#!/bin/sh
CURDIR=`pwd`
APPDIR="$(dirname -- "$(readlink -f -- "${0}")" )"
cd "$APPDIR"
# Set absolute path work around
sed -e "s,FULLPATH,$PWD,g" SavvyCAN.desktop > SavvyCAN.desktop.temp
# Set absolute path
sed -e "s,<DIR>,$CURDIR,g" SavvyCAN.desktop > SavvyCAN.desktop.temp
cp SavvyCAN.desktop.temp ~/.local/share/applications/SavvyCAN.desktop
cp SavvyCAN.desktop.temp ~/Desktop/SavvyCAN.desktop
rm SavvyCAN.desktop.temp
echo "Installed SavvyCAN icons on menu and desktop !"