From 3d46058e5dd7ab23dc0e1702b9e82d566b4b96f7 Mon Sep 17 00:00:00 2001 From: uncor3 Date: Sun, 19 Oct 2025 03:05:35 +0000 Subject: [PATCH] fix linux build --- .github/workflows/build-linux.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 19bc851..ef77b4c 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -53,7 +53,6 @@ jobs: libssh-dev - name: Install Qt - id: install-qt uses: jurplel/install-qt-action@v3 with: version: "6.7.2" @@ -126,8 +125,22 @@ jobs: - name: Build AppImage working-directory: ./build run: | - export QTDIR="${{ steps.install-qt.outputs.qt-path }}" - echo "QTDIR is set to: $QTDIR" + # Qt version installed by the Install Qt step + QT_VERSION="6.7.2" + # find the arch folder under the runner workspace Qt install + ARCH="$(ls -d "$RUNNER_WORKSPACE/Qt/$QT_VERSION/"* 2>/dev/null | head -n1 | xargs -n1 basename || true)" + if [ -z "$ARCH" ]; then + echo "Could not find Qt installation under $RUNNER_WORKSPACE/Qt/$QT_VERSION" + ls -la "$RUNNER_WORKSPACE/Qt" || true + exit 1 + fi + + export QTDIR="$RUNNER_WORKSPACE/Qt/$QT_VERSION/$ARCH" + export QT_ROOT_DIR="$QTDIR" + export PATH="$QTDIR/bin:$PATH" + + echo "Using QTDIR=$QTDIR" + ../appimagetool-*.AppImage deploy AppDir/usr/share/applications/*.desktop VERSION=1.0.0 ../appimagetool-*.AppImage AppDir