build: Pack flatpak manually instead

This commit is contained in:
WerWolv 2021-08-25 15:19:55 +02:00
parent caab58063f
commit 71c672eb9b
1 changed files with 8 additions and 9 deletions

View File

@ -12,9 +12,6 @@ jobs:
linux: linux:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
name: 🐧 Ubuntu 20.04 name: 🐧 Ubuntu 20.04
container:
image: bilelmoussaoui/flatpak-github-actions:freedesktop-20.08
options: --privileged
steps: steps:
- name: 🧰 Checkout - name: 🧰 Checkout
@ -43,11 +40,13 @@ jobs:
make -j 4 install make -j 4 install
- name: ✋ Bundle Flatpak - name: ✋ Bundle Flatpak
uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v3 run: |
with: sudo apt install flatpak flatpak-builder
bundle: imhex.flatpak flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
manifest-path: dist/net.werwolv.ImHex.yaml flatpak --user install flathub org.freedesktop.Platform//20.08
cache-key: flatpak-builder-${{ github.sha }} flatpak --user install flathub org.freedesktop.Sdk//20.08
flatpak-builder --repo=imhex _flatpak dist/net.werwolv.ImHex.yaml
flatpak build-bundle imhex imhex.flatpak net.werwolv.ImHex
- name: 📦 Upload ELF - name: 📦 Upload ELF
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
@ -61,7 +60,7 @@ jobs:
with: with:
name: Linux Flatpak name: Linux Flatpak
path: | path: |
build/*.flatpak _flatpak/*.flatpak
win: win:
runs-on: windows-latest runs-on: windows-latest