Skip to content

Commit

Permalink
BUILD: appimage - fix path to appimage if we've used that for qwurl r…
Browse files Browse the repository at this point in the history
…egistration
  • Loading branch information
ciscon committed Nov 21, 2023
1 parent cc80243 commit 0bd0c91
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions misc/appimage/appimage-manual_creation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,22 @@ cd "$OWD"
FAIL=${PIPESTATUS[0]}
if [ $FAIL -eq 0 ];then
echo "executing with native libc"
exec "${APPDIR}/usr/bin/ezquake-linux-'$ARCH'" $*
"${APPDIR}/usr/bin/ezquake-linux-'$ARCH'" $*
else
echo "executing with appimage libc"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${APPDIR}/usr/lib-override"
exec "${APPDIR}/usr/lib-override/ld-linux-'$ARCHDASH'.so.2" "${APPDIR}/usr/bin/ezquake-linux-'$ARCH'" $*
fi'
"${APPDIR}/usr/lib-override/ld-linux-'$ARCHDASH'.so.2" "${APPDIR}/usr/bin/ezquake-linux-'$ARCH'" $*
fi
exitstatus=$?
if [ $exitstatus -eq 0 ];then
#fix qwurl association if set for appimage
grep -q "^Exec=/tmp/.mount_ezq" "${HOME}/.local/share/applications/qw-url-handler.desktop" && \
sed -i "s|^Exec=.*|Exec=${APPIMAGE}|g" "${HOME}/.local/share/applications/qw-url-handler.desktop"
else
exit $exitstatus
fi
'

unset CC
if [ "$ARCH" == "x86_64" ];then
Expand Down

0 comments on commit 0bd0c91

Please sign in to comment.