Merge pull request #467 from serkonda7/installer-fix
fix linux installer
This commit is contained in:
@@ -75,6 +75,8 @@ Now run SavvyCAN
|
|||||||
./SavvyCAN
|
./SavvyCAN
|
||||||
```
|
```
|
||||||
|
|
||||||
|
On linux systems you can run `./install.sh` to create a desktop shortcut.
|
||||||
|
|
||||||
### Compiling in debug mode for additional information
|
### Compiling in debug mode for additional information
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@@ -115,4 +117,3 @@ signal by juli from the Noun Project
|
|||||||
signal by yudi from the Noun Project
|
signal by yudi from the Noun Project
|
||||||
|
|
||||||
Death by Adrien Coquet from the Noun Project
|
Death by Adrien Coquet from the Noun Project
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -3,8 +3,8 @@ Type=Application
|
|||||||
Name=SavvyCAN
|
Name=SavvyCAN
|
||||||
GenericName=CANBus reverse engineering tool
|
GenericName=CANBus reverse engineering tool
|
||||||
Comment=Facilitates reverse engineering of canbus captures
|
Comment=Facilitates reverse engineering of canbus captures
|
||||||
Exec=SavvyCAN
|
Exec=<DIR>/SavvyCAN
|
||||||
Icon=SavvyCAN
|
Icon=<DIR>/icons/SavvyIcon.png
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Categories=Development;Electronics;IDE;
|
Categories=Development;Electronics;IDE;
|
||||||
MimeType=text/x-application;
|
MimeType=text/x-application;
|
||||||
|
|||||||
+2
-6
@@ -1,16 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
CURDIR=`pwd`
|
CURDIR=`pwd`
|
||||||
APPDIR="$(dirname -- "$(readlink -f -- "${0}")" )"
|
|
||||||
|
|
||||||
cd "$APPDIR"
|
# Set absolute path
|
||||||
|
sed -e "s,<DIR>,$CURDIR,g" SavvyCAN.desktop > SavvyCAN.desktop.temp
|
||||||
# Set absolute path work around
|
|
||||||
sed -e "s,FULLPATH,$PWD,g" SavvyCAN.desktop > SavvyCAN.desktop.temp
|
|
||||||
|
|
||||||
cp SavvyCAN.desktop.temp ~/.local/share/applications/SavvyCAN.desktop
|
cp SavvyCAN.desktop.temp ~/.local/share/applications/SavvyCAN.desktop
|
||||||
cp SavvyCAN.desktop.temp ~/Desktop/SavvyCAN.desktop
|
cp SavvyCAN.desktop.temp ~/Desktop/SavvyCAN.desktop
|
||||||
rm SavvyCAN.desktop.temp
|
rm SavvyCAN.desktop.temp
|
||||||
|
|
||||||
echo "Installed SavvyCAN icons on menu and desktop !"
|
echo "Installed SavvyCAN icons on menu and desktop !"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user