chore(ci): add flatpak build (#398)

* chore(ci): add flatpak build

* fmt changelog
This commit is contained in:
Mohan 2025-06-12 13:04:56 +02:00 committed by GitHub
parent 835552c834
commit 742acca444
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 28 additions and 3 deletions

View file

@ -21,7 +21,7 @@ jobs:
- platform: "macos-13" # for Intel based macs.
args: "--target x86_64-apple-darwin"
- platform: "ubuntu-24.04" # We build on an older version to support older glib versions
args: ""
args: "--bundles deb,appimage,flatpak"
- platform: "windows-latest"
args: ""
@ -57,6 +57,7 @@ jobs:
librsvg2-dev;
sudo apt install -y \
flatpak flatpak-builder \
libwebkit2gtk-4.1-0=2.44.0-2 \
libwebkit2gtk-4.1-dev=2.44.0-2 \
libjavascriptcoregtk-4.1-0=2.44.0-2 \
@ -64,6 +65,14 @@ jobs:
gir1.2-javascriptcoregtk-4.1=2.44.0-2 \
gir1.2-webkit2-4.1=2.44.0-2;
- name: prepare flatpak runtime
if: matrix.platform == 'ubuntu-24.04'
run: |
flatpak --version
flatpak remote-add --if-not-exists flathub \
https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak update -y
- name: work around spurious network errors in curl 8.0
shell: bash
run: |

View file

@ -7,7 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
- docs: add instructions for verifying Tauri signature files
- GUI: Build Flatpak bundle in release workflow
- docs: Instructions for verifying GUI (Tauri) signature files
## [2.0.0-beta.2] - 2025-06-11

View file

@ -29,7 +29,22 @@
"bundle": {
"createUpdaterArtifacts": true,
"active": true,
"targets": ["appimage", "dmg", "nsis", "app", "deb"],
"targets": ["appimage", "flatpak", "dmg", "nsis", "app", "deb"],
/* Flatpak-specific settings
* These are ignored by the other targets. */
"flatpak": {
"id": "net.unstoppableswap.UnstoppableSwap",
"runtime": "org.freedesktop.Platform",
"sdk": "org.freedesktop.Sdk",
"runtimeVersion": "23.08",
"finishArgs": [
"--socket=wayland",
"--socket=x11",
"--share=network",
"--device=all"
]
},
"icon": [
"icons/32x32.png",
"icons/128x128.png",