diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8a93241..a3353f5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -27,10 +27,7 @@ jobs: - name: Install AppImage and Linux dependencies run: | sudo apt-get update - sudo apt-get install -y libgtk-3-dev libblkid-dev e2fslibs-dev liblzma-dev libmpv-dev mpv ninja-build fuse - wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage - wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage - chmod +x linuxdeploy-x86_64.AppImage appimagetool-x86_64.AppImage + sudo apt-get install -y libgtk-3-dev libblkid-dev e2fslibs-dev liblzma-dev libmpv-dev mpv ninja-build fuse appimagetool # Fetch Flutter dependencies - name: Install Flutter dependencies @@ -40,9 +37,11 @@ jobs: - name: Build Flutter Linux App run: flutter build linux - - name: List build directory - run: | - ls -R build/linux/x64/release/bundle + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3.1.0 + with: + name: linux-bin + path: build/linux/x64/release/bundle # Ensure executable permissions - name: Set executable permissions @@ -50,12 +49,7 @@ jobs: # Package the built Linux app into an AppImage - name: Create AppImage - run: | - ./linuxdeploy-x86_64.AppImage \ - --appdir=build/linux/x64/release/bundle \ - --output appimage \ - --desktop-file=assets/desktop/myapp.desktop \ - --icon-file assets/images/myapp.png + run: appimagetool --appdir=build/linux/x64/release/bundle AppImage.AppImage # Upload the AppImage as an artifact (optional) - name: Upload AppImage artifact