diff --git a/buildscripts/ci/linux/tools/make_appimage.sh b/buildscripts/ci/linux/tools/make_appimage.sh index 1e1adab851e9f..bf145f214c6ba 100644 --- a/buildscripts/ci/linux/tools/make_appimage.sh +++ b/buildscripts/ci/linux/tools/make_appimage.sh @@ -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 ##########################################################################