Skip to content

Commit 7212883

Browse files
add flatpak bundle
1 parent 0852493 commit 7212883

2 files changed

Lines changed: 48 additions & 1 deletion

File tree

.github/workflows/flatpak.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Flatpak
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
build-flatpak:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Install Flatpak tooling
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y flatpak flatpak-builder
21+
22+
- name: Add Flathub remote
23+
run: |
24+
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
25+
26+
- name: Build Flatpak repository
27+
run: |
28+
flatpak-builder \
29+
--force-clean \
30+
--repo=repo \
31+
--install-deps-from=flathub \
32+
build-dir \
33+
io.github.archisman_panigrahi.wombat.json
34+
35+
- name: Create Flatpak bundle
36+
run: |
37+
flatpak build-bundle \
38+
repo \
39+
wombat.flatpak \
40+
io.github.archisman_panigrahi.wombat
41+
42+
- name: Upload Flatpak artifact
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: wombat-flatpak
46+
path: wombat.flatpak
47+
if-no-files-found: error

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ flatpak install flathub org.gnome.Platform//47 org.gnome.Sdk//47 org.freedesktop
8686
Build and install locally:
8787

8888
```bash
89-
flatpak-builder --user --install --force-clean .flatpak-build io.github.archisman_panigrahi.wombat.Devel.json
89+
flatpak-builder --user --install --force-clean .flatpak-build io.github.archisman_panigrahi.wombat.json
9090
```
9191

9292
Run it:

0 commit comments

Comments
 (0)