diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 37da679..a3469ff 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -58,3 +58,39 @@ jobs: with: name: my-flutter-app.AppImage path: '*.AppImage' + + build-apk: + runs-on: ubuntu-latest + + steps: + # Checkout the repository + - name: Checkout code + uses: actions/checkout@v3 + + - uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: '13' + + # Install Flutter SDK + - name: Install Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: '3.24.3' + + # Fetch Flutter dependencies + - name: Install Flutter dependencies + run: flutter pub get + + # Run Flutter build for Linux + - name: Build Flutter Linux App + run: flutter build apk + + - run: ls -R + + # Upload the AppImage as an artifact + - name: Upload AppImage artifact + uses: actions/upload-artifact@v3 + with: + name: my-flutter-app.apk + path: '*.apk' \ No newline at end of file diff --git a/assets/desktop/myapp.desktop b/assets/desktop/myapp.desktop index d63035b..8163db3 100644 --- a/assets/desktop/myapp.desktop +++ b/assets/desktop/myapp.desktop @@ -1,6 +1,6 @@ [Desktop Entry] Name=My Flutter App -Exec=./open_media_server_app +Exec=./build/linux/x64/release/bundle/open_media_server_app Icon=myapp Type=Application Categories=Utility; \ No newline at end of file