AppImage: Fix launching relative paths

This commit is contained in:
Connor McLaughlin 2022-08-10 17:54:34 +10:00
parent 819b27a1a1
commit a5585f047c

View file

@ -292,8 +292,8 @@ echo "Creating AppRun..."
cat > "$OUTDIR/AppRun" << EOF
#!/bin/sh
cd "\$(dirname "\$0")"
exec ./usr/bin/$BINARY "\$@"
APPDIR=\$(dirname "\$0")
exec "\$APPDIR/usr/bin/$BINARY" "\$@"
EOF
chmod +x "$OUTDIR/AppRun"