From 2c19b74d2a63c824db25b56671587cd065078517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Sat, 26 Apr 2025 16:05:20 -0300 Subject: [PATCH] Fix AppImage generation from within the docker container. --- .github/workflows/ecode-nightly.yml | 2 +- projects/linux/ecode/build.app.sh | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ecode-nightly.yml b/.github/workflows/ecode-nightly.yml index 85e8ddd54..ae794c9c9 100644 --- a/.github/workflows/ecode-nightly.yml +++ b/.github/workflows/ecode-nightly.yml @@ -79,7 +79,7 @@ jobs: bash projects/scripts/patch_commit_number.sh - name: Install dependencies run: | - apt-get install -y curl libfuse2 fuse premake4 mesa-common-dev libgl1-mesa-dev sudo + apt-get install -y curl libfuse2 fuse premake4 mesa-common-dev libgl1-mesa-dev sudo file appstream curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - apt-get install -y nodejs add-apt-repository -y universe diff --git a/projects/linux/ecode/build.app.sh b/projects/linux/ecode/build.app.sh index ce33606fb..259ceaea3 100755 --- a/projects/linux/ecode/build.app.sh +++ b/projects/linux/ecode/build.app.sh @@ -110,9 +110,10 @@ export APPIMAGETOOL="appimagetool" if ! command -v appimagetool &> /dev/null then - wget -nc "https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-$(arch).AppImage" - APPIMAGETOOL="./appimagetool-$(arch).AppImage" - chmod +x "$APPIMAGETOOL" + wget -nc "https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-$(arch).AppImage" + chmod +x "./appimagetool-$(arch).AppImage" + ./appimagetool-"$(arch)".AppImage --appimage-extract + APPIMAGETOOL="./squashfs-root/AppRun" fi ECODE_NAME=ecode-linux-"$ECODE_VERSION"-"$ARCH" @@ -131,9 +132,10 @@ fi echo "Generating $ECODE_NAME.AppImage" $APPIMAGETOOL ecode.app "$ECODE_NAME".AppImage -rm ecode.app/.DirIcon +rm -f ecode.app/.DirIcon mv ecode.app/AppRun ecode.app/ecode mv ecode.app ecode +rm -rf ./squashfs-root echo "Generating $ECODE_NAME.tar.gz" tar -czf "$ECODE_NAME".tar.gz ecode