AppImage: Fix launching relative paths

pull/2865/head
Connor McLaughlin 3 years ago
parent 819b27a1a1
commit a5585f047c

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

Loading…
Cancel
Save