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
+7 -6
View File
@@ -1,5 +1,5 @@
# SavvyCAN # SavvyCAN
Qt based cross platform canbus tool Qt based cross platform canbus tool
(C) 2015-2021 EVTV and Collin Kidder (C) 2015-2021 EVTV and Collin Kidder
A Qt5 based cross platform tool which can be used to load, save, and capture canbus frames. A Qt5 based cross platform tool which can be used to load, save, and capture canbus frames.
@@ -10,7 +10,7 @@ Please use the "Discussions" tab here on GitHub to ask questions and interact wi
Requires a resolution of at least 1024x768. Fully multi-monitor capable. Works on 4K monitors as well. Requires a resolution of at least 1024x768. Fully multi-monitor capable. Works on 4K monitors as well.
You are highly recommended to use the You are highly recommended to use the
[CANDue board from EVTV](http://store.evtv.me/proddetail.php?prod=ArduinoDueCANBUS&cat=23). [CANDue board from EVTV](http://store.evtv.me/proddetail.php?prod=ArduinoDueCANBUS&cat=23).
The CANDue board must be running the GVRET firmware which can also be found The CANDue board must be running the GVRET firmware which can also be found
@@ -43,12 +43,12 @@ from the Qt installer.
Uses QCustomPlot available at: Uses QCustomPlot available at:
http://www.qcustomplot.com/ http://www.qcustomplot.com/
However, this source code is integrated into the source for SavvyCAN and one isn't required However, this source code is integrated into the source for SavvyCAN and one isn't required
to download it separately. to download it separately.
This project requires 5.14.0 or higher because of a dependency on QtSerialBus and other new additions to Qt. This project requires 5.14.0 or higher because of a dependency on QtSerialBus and other new additions to Qt.
NOTE: Qt6 currently lacks support for QtSerialBus and many other Qt sub-features. At this time you cannot NOTE: Qt6 currently lacks support for QtSerialBus and many other Qt sub-features. At this time you cannot
use Qt6 to compile SavvyCAN. Support for Qt6 should be possible around Qt6.2. use Qt6 to compile SavvyCAN. Support for Qt6 should be possible around Qt6.2.
@@ -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 !"