fix linux installer
This commit is contained in:
@@ -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
@@ -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
@@ -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 !"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user