From 473d7c6ce592406d6c27df4fcd5d4794b4bd4196 Mon Sep 17 00:00:00 2001 From: Samuel <36420837+Samueru-sama@users.noreply.github.com> Date: Mon, 4 Nov 2024 16:40:04 -0400 Subject: [PATCH] use go-appimage to deploy --- .github/workflows/build.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1108ab6..2c4fa33 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -45,21 +45,19 @@ jobs: - name: Package AppImage run: | - curl -sSfLO "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-static-x86_64.AppImage" - curl -sSfLO "https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-static-x86_64.AppImage" + export APPIMAGE_EXTRACT_AND_RUN=1 ARCH=x86_64 VERSION=${{ matrix.clib }} curl -sSfL "https://github.com/probonopd/go-appimage/releases/download/832/appimagetool-823-x86_64.AppImage" -o appimagetool-static.AppImage chmod a+x *.AppImage chmod a+x .github/scripts/smartctl mkdir -p AppDir/usr/bin cp build/QDiskInfo AppDir/usr/bin/ - cp .github/scripts/smartctl AppDir/usr/bin/ - cp dist/QDiskInfo.desktop AppDir/ + cp dist/QDiskInfo.desktop AppDir/usr/share/applications cp dist/QDiskInfo.svg AppDir/QDiskInfo.svg - APPIMAGE_EXTRACT_AND_RUN=1 NO_STRIP=1 QMAKE=/usr/bin/qmake6 ARCH=x86_64 ./linuxdeploy-static-x86_64.AppImage --appdir=AppDir/ -d AppDir/QDiskInfo.desktop -i AppDir/QDiskInfo.svg -e AppDir/usr/bin/QDiskInfo --plugin qt - echo 'export PATH="$this_dir"/usr/bin:"$PATH"' >> AppDir/apprun-hooks/linuxdeploy-plugin-qt-hook.sh - APPIMAGE_EXTRACT_AND_RUN=1 VERSION=${{ matrix.clib }} QMAKE=/usr/bin/qmake6 ARCH=x86_64 ./appimagetool-static.AppImage AppDir/ + ./appimagetool-static.AppImage -s deploy AppDir/usr/share/applications/*.desktop + cp .github/scripts/smartctl AppDir/usr/bin/ # done afterwards because patchelf errors out static bins + ./appimagetool-static.AppImage AppDir - name: Upload AppImage uses: actions/upload-artifact@v4