fix(flatpak): move runtime to KDE 6.10 (freedesktop 25.08)

Restore the Flatpak manifest to the repo and target org.kde.Platform
6.10 instead of the EOL 6.6/23.08 stack reported in issue #5.

Add a maintainer build script and a CI job that verifies the manifest
builds against the current KDE SDK.
This commit is contained in:
Sebastian Palencsar
2026-06-22 16:20:31 +02:00
parent a72543090b
commit ccb215274d
3 changed files with 62 additions and 0 deletions

View File

@@ -40,3 +40,21 @@ jobs:
ctest --test-dir build --output-on-failure
"$(/usr/lib/qt6/bin/qtpaths6 --query QT_INSTALL_BINS)/qmllint" src/qml/Main.qml src/qml/components/*.qml src/qml/theme/BearTheme.qml
'
flatpak-build:
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Build Flatpak manifest
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y flatpak flatpak-builder
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install --user -y flathub org.kde.Sdk//6.10 org.kde.Platform//6.10
flatpak-builder --user --force-clean flatpak_build de.nerdbear.bearwave.json
grep -q '"runtime-version" : "6.10"' flatpak_build/files/manifest.json
test "$(grep '^runtime=' flatpak_build/metadata)" = "runtime=org.kde.Platform/x86_64/6.10"

34
de.nerdbear.bearwave.json Normal file
View File

@@ -0,0 +1,34 @@
{
"app-id": "de.nerdbear.bearwave",
"runtime": "org.kde.Platform",
"runtime-version": "6.10",
"sdk": "org.kde.Sdk",
"command": "bearwave",
"finish-args": [
"--share=network",
"--socket=wayland",
"--socket=fallback-x11",
"--socket=pulseaudio",
"--own-name=org.mpris.MediaPlayer2.bearwave",
"--talk-name=org.freedesktop.Notifications",
"--talk-name=org.kde.StatusNotifierWatcher",
"--share=ipc"
],
"modules": [
{
"name": "bearwave",
"buildsystem": "cmake-ninja",
"builddir": true,
"config-opts": [
"-DCMAKE_BUILD_TYPE=Release",
"-DBEARWAVE_BUILD_TESTS=OFF"
],
"sources": [
{
"type": "dir",
"path": "."
}
]
}
]
}

10
scripts/build-flatpak.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$root"
flatpak-builder --repo=flatpak_repo --force-clean flatpak_build de.nerdbear.bearwave.json
flatpak build-update-repo flatpak_repo
echo "Flatpak repo updated in flatpak_repo/. Deploy it to flatpak.bearwave.app."