File tree 1 file changed +6
-6
lines changed
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"
58
58
cp --recursive $verbose " $LINUXDEPLOY_PLUGIN_GDB_SRC " " $appdir /usr/"
59
59
60
60
echo " 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
63
64
#! /bin/bash
64
65
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 } " "\ $ @"
67
68
else
68
- exec "$APPDIR /AppRun.wrapped.real " "$@ "
69
+ exec "\ $ APPDIR/${exe # $appdir } " "\ $ @"
69
70
fi
70
71
EOF
71
- sed -i " s|@SRCDIR@|$( basename " $LINUXDEPLOY_PLUGIN_GDB_SRC " ) |" " $appdir /AppRun.wrapped"
72
72
chmod $verbose 755 " $appdir /AppRun.wrapped"
You can’t perform that action at this time.
0 commit comments