Add flatpak builds

This commit is contained in:
Geomitron
2025-03-25 13:50:33 -05:00
parent d4c3208b87
commit 21f8a98456
3 changed files with 15 additions and 5 deletions

View File

@@ -39,10 +39,15 @@ jobs:
node-version: v18.19.0 node-version: v18.19.0
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install builder dependencies - name: Fix apt and install builder dependencies
shell: bash shell: bash
run: | run: |
sudo rm /var/lib/apt/lists/* || true
sudo apt update
sudo apt install flatpak -y
sudo apt install flatpak-builder -y
sudo apt install elfutils -y sudo apt install elfutils -y
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
git config --global --add protocol.file.allow always git config --global --add protocol.file.allow always
- name: Build the app (Linux) - name: Build the app (Linux)
shell: bash shell: bash
@@ -54,7 +59,7 @@ jobs:
shell: bash shell: bash
run: | run: |
cd release cd release
find . -type f \( -name "*.AppImage" -o -name "latest-linux.yml" \) -print0 | tar -czvf bridge-linux.tar.gz --null -T - find . -type f \( -name "*.AppImage" -o -name "*.flatpak" -o -name "latest-linux.yml" \) -print0 | tar -czvf bridge-linux.tar.gz --null -T -
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: bridge-linux name: bridge-linux

View File

@@ -27,11 +27,15 @@ jobs:
node-version: v18.19.0 node-version: v18.19.0
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install builder dependencies - name: Fix apt and install builder dependencies
shell: bash shell: bash
run: | run: |
sudo rm /var/lib/apt/lists/* || true
sudo apt update
sudo apt install flatpak -y
sudo apt install flatpak-builder -y
sudo apt install elfutils -y sudo apt install elfutils -y
git config --global --add protocol.file.allow always flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
- name: Build the app - name: Build the app
shell: bash shell: bash
run: | run: |

View File

@@ -36,7 +36,8 @@
"linux": { "linux": {
"compression": "maximum", "compression": "maximum",
"target": [ "target": [
"AppImage" "AppImage",
"flatpak"
], ],
"category": "utility" "category": "utility"
} }