Skip to content

Commit 466a763

Browse files
committed
AppDir - remove linuxdeploy symlink before creating AppRun
1 parent 9be4dc6 commit 466a763

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

bin/linux/build-appimage.sh

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ echo "Qt libraries bundled successfully."
252252

253253
# Create AppRun with dependency checking
254254
echo "Creating AppRun launcher with dependency checks..."
255+
# Remove any existing AppRun (linuxdeploy may have created a symlink)
256+
rm -f "${APPDIR}/AppRun"
255257
cat > "${APPDIR}/AppRun" << 'EOF'
256258
#!/bin/bash
257259
set -e
@@ -315,25 +317,8 @@ else
315317
APPIMAGETOOL="appimagetool"
316318
fi
317319

318-
# Debug: Show AppDir structure before packaging
319-
echo ""
320-
echo "=== AppDir structure before packaging ==="
321-
echo "All symlinks in AppDir:"
322-
find "${APPDIR}" -type l -ls 2>/dev/null || true
323-
echo ""
324-
echo "=== AppRun location and type ==="
325-
ls -la "${APPDIR}/AppRun"
326-
file "${APPDIR}/AppRun" 2>/dev/null || true
327-
echo ""
328-
echo "=== /usr/bin contents ==="
329-
ls -la "${APPDIR}/usr/bin/" 2>/dev/null || true
330-
echo ""
331-
echo "=== Root level contents ==="
332-
ls -la "${APPDIR}/" 2>/dev/null || true
333-
echo "================================"
334-
echo ""
335-
336320
# Build AppImage
321+
echo ""
337322
echo "Building AppImage..."
338323
cd "${ROOT_DIR}/release"
339324
# In CI environments, appimagetool may fail to test the AppImage due to missing FUSE

0 commit comments

Comments
 (0)