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 ./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
View File
@@ -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
View File
@@ -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 !"