From a5447bd949f6f8b3c74d7a4ac3db246cb7592e6c Mon Sep 17 00:00:00 2001 From: DanielJohn17 Date: Fri, 25 Sep 2026 00:52:38 +0300 Subject: [PATCH] fix(appimage): stop bundling libwayland-client to prevent EGL crash on Linux WebKitWebProcess aborts with "Could not create default EGL display: EGL_BAD_PARAMETER. Aborting..." because linuxdeploy bundles libwayland-client.so.0, which shadows the host library and breaks the host Mesa/EGL stack glvnd loads. Strip it from the AppImage after bundling on Linux CI builds. See #47; tracked upstream at tauri-apps/tauri#16062. --- .github/workflows/desktop-build.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml index fa7ba3f..a26e8be 100644 --- a/.github/workflows/desktop-build.yml +++ b/.github/workflows/desktop-build.yml @@ -89,6 +89,20 @@ jobs: export PATH="${HOME}/.cargo/bin:${PATH}" pnpm exec tauri build -b "${{ matrix.bundles }}" + # Bundled libwayland-client shadows the host lib and makes WebKit abort (see #47, tauri-apps/tauri#16062) + - name: Strip libwayland-client from AppImage + if: matrix.os == 'ubuntu-latest' + shell: bash + run: | + set -euo pipefail + export APPIMAGE_EXTRACT_AND_RUN=1 + img=$(find src-tauri/target/release/bundle/appimage -name '*.AppImage' | head -1) + chmod +x "$img" && "$img" --appimage-extract >/dev/null + rm squashfs-root/usr/lib/libwayland-client.so.0 + curl -fsSL https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage -o appimagetool + chmod +x appimagetool && ./appimagetool --no-appstream squashfs-root "$img" + rm -rf squashfs-root appimagetool + - name: Upload desktop bundles uses: actions/upload-artifact@v4 with: