Skip to content

Commit

Permalink
Update make_appimage.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
cbjeukendrup committed Sep 19, 2024
1 parent 4dd658a commit 0c44417
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions buildscripts/ci/linux/tools/make_appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,25 +129,9 @@ fi
if [[ "${UPDATE_INFORMATION}" ]]; then
export PATH="$BUILD_TOOLS/appimageupdatetool:$PATH"

readlink -f "$(which appimageupdatetool)"
readlink "$(which appimageupdatetool)"
ls $BUILD_TOOLS
ls $BUILD_TOOLS/appimageupdatetool
ls $BUILD_TOOLS/appimageupdatetool/appimageupdatetool-${PACKARCH}.AppDir

cd $BUILD_TOOLS/appimageupdatetool
readlink -f "$(which appimageupdatetool)"
readlink "$(which appimageupdatetool)"
ls $BUILD_TOOLS
ls $BUILD_TOOLS/appimageupdatetool
ls $BUILD_TOOLS/appimageupdatetool/appimageupdatetool-${PACKARCH}.AppDir

# `appimageupdatetool`'s `AppRun` script gets confused when called via a symlink to itself
# (rather than when its containing AppDir is symlinked). Let's patch it.
sed -i 's|appdir=$(readlink -f ${APPDIR:-$(dirname "$0")})|appdir=$(readlink -f "${APPDIR:-$(dirname "$(readlink -f "$(which "$0")")")}")|' "$(which appimageupdatetool)"
cat "$(which appimageupdatetool)"

bash -ex appimageupdatetool --version
# `appimageupdatetool`'s `AppRun` script gets confused when called via a symlink.
# Resolve the symlink here to avoid this issue.
$(readlink -f "$(which appimageupdatetool)") --version
fi

##########################################################################
Expand Down

0 comments on commit 0c44417

Please sign in to comment.