chore(ci): try to fix the flatpak build Unable to find sdk org.freedesktop.Sdk version 24.08 issue
This commit is contained in:
@@ -141,13 +141,15 @@ jobs:
|
||||
sudo apt update
|
||||
sudo apt install -y flatpak flatpak-builder elfutils
|
||||
flatpak --version
|
||||
flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||
|
||||
- name: Build Flatpak (Linux Only) # Flatpak
|
||||
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm' }}
|
||||
working-directory: ./apps/stage-tamagotchi
|
||||
run: |
|
||||
flatpak-builder ./flatpak ai.moeru.airi.flatpak.yml --force-clean
|
||||
mkdir -p bundle
|
||||
# Auto-install required SDK/Platform/BaseApp from Flathub in user scope
|
||||
flatpak-builder --user --install-deps-from=flathub ./flatpak ai.moeru.airi.flatpak.yml --force-clean
|
||||
flatpak build-export ./flatpak-repo ./flatpak
|
||||
flatpak build-bundle ./flatpak-repo bundle/ai.moeru.airi-${{ matrix.arch }}.flatpak ai.moeru.airi
|
||||
echo "FLATPAK_BUNDLE_NAME=ai.moeru.airi-${{ matrix.arch }}.flatpak" >> $GITHUB_ENV
|
||||
|
||||
Reference in New Issue
Block a user