Skip to content

Commit

Permalink
CI/AppImage: Explicitly remove libwayland-*
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Jun 16, 2024
1 parent 2a90a88 commit 51648b0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/appimage/make-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ declare -a MANUAL_QT_PLUGINS=(
"wayland-shell-integration"
)

declare -a REMOVE_LIBS=(
'libwayland-client.so*'
'libwayland-cursor.so*'
'libwayland-egl.so*'
)

set -e

LINUXDEPLOY=./linuxdeploy-x86_64.AppImage
Expand Down Expand Up @@ -165,6 +171,16 @@ for GROUP in "${MANUAL_QT_PLUGINS[@]}"; do
done
done

# Why do we have to manually remove these libs? Because the linuxdeploy Qt plugin
# copies them, not the "main" linuxdeploy binary, and plugins don't inherit the
# include list...
for lib in "${REMOVE_LIBS[@]}"; do
for libpath in $(find "$OUTDIR/usr/lib" -name "$lib"); do
echo " Removing problematic library ${libpath}."
rm -f "$libpath"
done
done

# Restore unstripped deps (for cache).
rm -fr "$DEPSDIR"
mv "$DEPSDIR.bak" "$DEPSDIR"
Expand Down

0 comments on commit 51648b0

Please sign in to comment.