From c839dd54615d416a31fa7ae994db7c2c008d1aa4 Mon Sep 17 00:00:00 2001 From: reharish <58879939+reharish@users.noreply.github.com> Date: Sun, 25 Sep 2022 23:17:39 +0530 Subject: [PATCH] Fixed stlink-gui binary issue #1270 https://github.com/stlink-org/stlink/issues/1270 modified: cmake/packaging/deb/postinst --- cmake/packaging/deb/postinst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmake/packaging/deb/postinst b/cmake/packaging/deb/postinst index bc74428ae..ba463f536 100644 --- a/cmake/packaging/deb/postinst +++ b/cmake/packaging/deb/postinst @@ -1,4 +1,12 @@ #!/bin/bash # This `DEBIAN/postinst` script is run post-installation +STLINK_GUI_BIN="/usr/bin/stlink-gui" + +cp -a ${STLINK_GUI_BIN} /usr/share/stlink/stlink-gui + +echo "exec /usr/share/stlink-gui" > ${STLINK_GUI_BIN} + +chmod +x ${STLINK_GUI_BIN} + depmod -a