From 4f01c863a93837c1bbdeae2baed2be6018eb80bf Mon Sep 17 00:00:00 2001 From: Ahmed Zetao Yang Date: Sat, 13 Feb 2021 18:44:49 +0800 Subject: [PATCH] fix: add executable permission for ld-linux-x86-64.so --- .github/workflows/Linux-pack.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Linux-pack.yml b/.github/workflows/Linux-pack.yml index 18472f4d..310f929b 100644 --- a/.github/workflows/Linux-pack.yml +++ b/.github/workflows/Linux-pack.yml @@ -357,7 +357,7 @@ jobs: - name: Get go-appimage tool # Will not use linuxdeployqt anymore, because it suopprts currently still-supported mainstream distribution, # which is glibc 2.23. For more information, please see https://github.com/probonopd/linuxdeployqt/issues/340. - # Will try new tool https://github.com/probonopd/go-appimage written in golang by the inventor of the AppImage format. + # Will try new tool https://github.com/probonopd/go-appimage written in golang by probonopd. run: | wget -c https://github.com/$(wget -q https://github.com/probonopd/go-appimage/releases -O - \ | grep "appimagetool-.*-${APPIMAGETOOL_ARCH}.AppImage" | head -n 1 | cut -d '"' -f 2) -O appimagetool @@ -384,7 +384,11 @@ jobs: $GITHUB_WORKSPACE/data/img/app/org.flameshot.Flameshot.png \ ${APPIMAGE_DST_PATH}/ - rm ${APPIMAGE_DST_PATH}/lib/x86_64-linux-gnu/libxcb-glx.so.0 + if [ -f "${APPIMAGE_DST_PATH}/lib/x86_64-linux-gnu/libxcb-glx.so.0" ]; then + rm ${APPIMAGE_DST_PATH}/lib/x86_64-linux-gnu/libxcb-glx.so.0 + fi + + chmod +x ${APPIMAGE_DST_PATH}/usr/lib64/ld-*.so.* VERSION=${VERSION} $GITHUB_WORKSPACE/appimagetool ${APPIMAGE_DST_PATH} mv $GITHUB_WORKSPACE/Flameshot-${VERSION}-x86_64.AppImage $GITHUB_WORKSPACE/Flameshot-${VERSION}.x86_64.AppImage