File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -58,15 +58,15 @@ echo "Copying source files"
5858cp --recursive $verbose " $LINUXDEPLOY_PLUGIN_GDB_SRC " " $appdir /usr/"
5959
6060echo " Installing new AppRun wrapper"
61- mv $verbose " $appdir /AppRun.wrapped" " $appdir /AppRun.wrapped.real"
62- cat > " $appdir /AppRun.wrapped" << \EOF
61+ exe=" $( readlink -f " $appdir /AppRun.wrapped" ) "
62+ rm $verbose " $appdir /AppRun.wrapped"
63+ cat > " $appdir /AppRun.wrapped" << EOF
6364#! /bin/bash
6465
65- if [[ -n "$APPIMAGE_USE_GDB " ]]; then
66- gdb --cd "$APPDIR /usr/@SRCDIR@" --args "$APPDIR /AppRun.wrapped.real " "$@ "
66+ if [[ -n "\ $ APPIMAGE_USE_GDB" ]]; then
67+ gdb --cd "\ $ APPDIR/usr/$( basename " $LINUXDEPLOY_PLUGIN_GDB_SRC " ) " --args "\ $ APPDIR/${exe # $appdir } " "\ $ @"
6768else
68- exec "$APPDIR /AppRun.wrapped.real " "$@ "
69+ exec "\ $ APPDIR/${exe # $appdir } " "\ $ @"
6970fi
7071EOF
71- sed -i " s|@SRCDIR@|$( basename " $LINUXDEPLOY_PLUGIN_GDB_SRC " ) |" " $appdir /AppRun.wrapped"
7272chmod $verbose 755 " $appdir /AppRun.wrapped"
You can’t perform that action at this time.
0 commit comments