Skip to content

Commit

Permalink
Fix removal of file.
Browse files Browse the repository at this point in the history
Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan committed Nov 21, 2024
1 parent 8cfb1dd commit d0d411f
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions admin/linux/build-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,16 @@ export QML_SOURCES_PATHS=${DESKTOP_CLIENT_ROOT}/src/gui
./linuxdeploy-squashfs-root/AppRun --desktop-file=${DESKTOP_FILE} --icon-file=usr/share/icons/hicolor/512x512/apps/Nextcloud.png --executable=usr/bin/${EXECUTABLE_NAME} --appdir=AppDir --output appimage

# Workaround issue #103 and #7231
export APPIMAGE_NAME=appimagetool-x86_64.AppImage
wget -O ${APPIMAGE_NAME} --ca-directory=/etc/ssl/certs -c "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
chmod a+x ${APPIMAGE_NAME}
./${APPIMAGE_NAME} --appimage-extract
rm ./${APPIMAGE_NAME}
cp -r ./squashfs-root ./appimagetool-squashfs-root
# Workaround issue #103 and #7231
export APPIMAGETOOL="appimagetool"
wget -O ${APPIMAGETOOL} --ca-directory=/etc/ssl/certs -c https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage
chmod a+x ${APPIMAGETOOL}

rm -rf ./squashfs-root
APPIMAGE=$(ls *.AppImage)
"./${APPIMAGE}" --appimage-extract
rm "./${APPIMAGE}"
./"${APPIMAGE}" --appimage-extract
rm ./"${APPIMAGE}"
rm ./squashfs-root/usr/lib/libglib-2.0.so.0
./"${APPIMAGETOOL}" -n ./squashfs-root "${APPIMAGE}"
PATH=./appimagetool-squashfs-root/usr/bin:$PATH appimagetool -n ./squashfs-root "$APPIMAGE"

#move AppImage
Expand Down

0 comments on commit d0d411f

Please sign in to comment.