Skip to content

Commit

Permalink
BUILD: appimage - remove libdrm and libgbm from appimage as it must m…
Browse files Browse the repository at this point in the history
…atch host's version (relevent when using kmsdrm)

        hide output in appimage script that fixes the qw url handler file
  • Loading branch information
ciscon committed Mar 20, 2024
1 parent 9bbb6a6 commit a278d12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion misc/appimage/appimage-manual_creation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fi
exitstatus=$?
if [ $exitstatus -eq 0 ];then
#fix qwurl association if set for appimage
grep -q "^Exec=/tmp/.mount_" "${HOME}/.local/share/applications/qw-url-handler.desktop" && \
grep -q "^Exec=/tmp/.mount_" "${HOME}/.local/share/applications/qw-url-handler.desktop" >/dev/null 2>&1 && \
sed -i "s|^Exec=.*|Exec=${APPIMAGE} +qwurl %u|g" "${HOME}/.local/share/applications/qw-url-handler.desktop"
fi
exit $exitstatus
Expand Down Expand Up @@ -103,6 +103,8 @@ mkdir -p "$DIR/AppDir/usr/share/metainfo"
sed 's,EZQUAKE_VERSION,'$VERSION-$REVISION',g;s,EZQUAKE_DATE,'$(date +%F)',g' "$DIR/misc/appimage/ezquake.appdata.xml.template" > "$DIR/AppDir/usr/share/metainfo/ezquake.appdata.xml"
ldd "$DIR/AppDir/usr/bin/ezquake-linux-$ARCH" | \
grep --color=never -v libGL| \
grep --color=never -v libdrm.so | \
grep --color=never -v libgbm.so | \
awk '{print $3}'| \
xargs -I% cp -Lf "%" "$DIR/AppDir/usr/lib/." || exit 5
strip -s "$DIR/AppDir/usr/lib/"* || exit 5
Expand Down

0 comments on commit a278d12

Please sign in to comment.