diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 739316e..54f8b37 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -91,14 +91,15 @@ jobs: - name: Scarica appimagetool se non presente run: | - if [ ! -f ./appimagetool-x86_64.AppImage ]; then - curl -L -o appimagetool-x86_64.AppImage https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage - chmod +x appimagetool-x86_64.AppImage + if [ ! -x /tmp/appimagetool-x86_64.AppImage ] || ! head -c 4 /tmp/appimagetool-x86_64.AppImage | grep -q "ELF"; then + rm -f /tmp/appimagetool-x86_64.AppImage + curl -fSL -o /tmp/appimagetool-x86_64.AppImage https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage + chmod +x /tmp/appimagetool-x86_64.AppImage fi - name: Genera AppImage run: | - ARCH=x86_64 APPIMAGE_EXTRACT_AND_RUN=1 ./appimagetool-x86_64.AppImage server/dist/BarcodeServer.AppDir BarcodeServer-x86_64.AppImage + ARCH=x86_64 APPIMAGE_EXTRACT_AND_RUN=1 /tmp/appimagetool-x86_64.AppImage server/dist/BarcodeServer.AppDir BarcodeServer-x86_64.AppImage chmod +x BarcodeServer-x86_64.AppImage APPIMAGE_EXTRACT_AND_RUN=1 ./BarcodeServer-x86_64.AppImage --version