Install the Labrador executable in /usr/bin on Linux

Fix the labrador -> Labrador symlink so that it's created in
${INSTALL_ROOT} when supplied; previously it was installed directly to
/usr/bin.  This symlink may not be necessary anymore.
This commit is contained in:
Kyle Guinn 2021-11-09 19:19:05 -06:00
parent 73df20a429
commit 4348dec47a
3 changed files with 4 additions and 21 deletions

View File

@ -164,7 +164,7 @@ unix:!android:!macx{
}
}
target.path = /usr/bin/EspoTek-Labrador
target.path = /usr/bin
firmware.files += $$files(bin/firmware/labrafirm*)
firmware.path = /usr/share/EspoTek/Labrador/firmware
@ -181,26 +181,17 @@ unix:!android:!macx{
icon256.files += resources/icon256/espotek-labrador.png
icon256.path = /usr/share/icons/hicolor/256x256/apps/
equals(APPIMAGE, 1){
desktop.files += resources/appimage/espotek-labrador.desktop
}
!equals(APPIMAGE, 1){
desktop.files += resources/espotek-labrador.desktop
}
desktop.files += resources/espotek-labrador.desktop
desktop.path = /usr/share/applications
symlink.path = /usr/bin
symlink.extra = ln -sf ${INSTALL_ROOT}/usr/bin/EspoTek-Labrador/Labrador /usr/bin/labrador
symlink.extra = ln -sf Labrador ${INSTALL_ROOT}/usr/bin/labrador
udevextra.path = /etc/udev/rules.d
!equals(DEB, 1){
udevextra.extra = udevadm control --reload-rules && udevadm trigger
}
equals(APPIMAGE, 1){
target.path = /usr/bin
}
INSTALLS += target
INSTALLS += lib_deploy
INSTALLS += firmware

View File

@ -1,8 +0,0 @@
[Desktop Entry]
Name=EspoTek Labrador
Comment=Software Interface for Labrador Board
Exec=Labrador
Terminal=false
Type=Application
Categories=Education;Electronics;
Icon=espotek-labrador

View File

@ -1,7 +1,7 @@
[Desktop Entry]
Name=EspoTek Labrador
Comment=Software Interface for Labrador Board
Exec=/usr/bin/EspoTek-Labrador/Labrador
Exec=Labrador
Terminal=false
Type=Application
Categories=Education;Electronics;