* feat(flatpak): add Flatpak packaging for universal distribution Adds a Flathub-ready Flatpak for the whisper.cpp engine, plus the minimal runtime adaptations Flatpak actually needs — deliberately scoped down from the earlier attempts (#416, #428), which bundled unrelated whisper.cpp GPU, audio, and clipboard changes. Packaging (packaging/flatpak/): - app manifest, AppStream metainfo, and desktop entry (com.vocalinux.Vocalinux) - generated offline Python dependency modules (flatpak-pip-generator) - bundled shared modules: PortAudio, libayatana-appindicator, xdotool, xsel Runtime changes (Flatpak-only, behaviour unchanged outside a sandbox): - utils/paths.py: honour XDG_CONFIG_HOME/XDG_DATA_HOME so config, models and runtime data live under ~/.var/app/<app-id> in the sandbox - autostart uses `flatpak run <app-id>` (the host launcher is always on PATH) - text injection and keyboard backend detect a Wayland host reached via XWayland (no Wayland socket granted) and route through xdotool / pynput-on-X11 - tray indicator references the exported `<app-id>-*` host icon theme names Also: a CI workflow building x86_64 + aarch64 bundles, and README / packaging README / distro-compatibility doc updates. Verified with a full flatpak-builder build + bundle install on aarch64: pywhispercpp loads its native libraries without LD_LIBRARY_PATH, XDG paths redirect correctly, bundled tools are present, and the entrypoint runs. Manifest and builddir lint are clean and AppStream metadata validates. Closes #167 * chore(flatpak): sync metainfo version to 0.14.0-beta Also ignore flatpak-build-dir/ so local builder output stays untracked. * refactor(flatpak): trim docs and comments after ponytail review Drop redundant packaging README command blocks, shrink path/tray/autostart comments, and stop ignoring a non-canonical build-dir name. * fix(flatpak): close readiness gaps for v0.14.0-beta Route log files through XDG data dirs so Flatpak keeps them under ~/.var/app, refresh AppStream screenshots to vocalinux.com, and use the SPDX GPL-3.0-only license id. * fix(flatpak): enable global hotkeys via evdev and --device=input pynput over XWayland only receives keys for the focused X client. Prefer evdev inside Flatpak and grant /dev/input so shortcuts work app-wide. * fix(flatpak): inject text with ydotool/uinput on Wayland xdotool only reaches XWayland clients, so typing appeared to succeed but never hit native apps. Ship ydotool, grant --device=all for uinput, start ydotoold on demand, and type via uinput inside the Flatpak. * fix(flatpak): paste via wl-copy + Ctrl+V instead of typing ydotool type injects character-by-character. Ship wl-clipboard, grant --socket=wayland, and prefer clipboard paste for instant insertion. * test(text-injection): expect ydotool default key-delay of 2 Matches the shipped VOCALINUX_YDOTOOL_KEY_DELAY default used when clipboard paste falls back to character typing.
122 lines
4.0 KiB
JSON
122 lines
4.0 KiB
JSON
{
|
|
"name": "libayatana-appindicator",
|
|
"buildsystem": "cmake-ninja",
|
|
"cleanup": [
|
|
"/include",
|
|
"/lib/pkgconfig"
|
|
],
|
|
"config-opts": [
|
|
"-DENABLE_BINDINGS_MONO=NO",
|
|
"-DENABLE_BINDINGS_VALA=NO",
|
|
"-DENABLE_GTKDOC=NO"
|
|
],
|
|
"modules": [
|
|
"../intltool/intltool-0.51.json",
|
|
{
|
|
"name": "libdbusmenu",
|
|
"buildsystem": "autotools",
|
|
"build-options": {
|
|
"cflags": "-Wno-error"
|
|
},
|
|
"cleanup": [
|
|
"*.la",
|
|
"/include",
|
|
"/lib/pkgconfig",
|
|
"/libexec",
|
|
"/share/doc",
|
|
"/share/gtk-doc"
|
|
],
|
|
"config-opts": [
|
|
"--with-gtk=3",
|
|
"--disable-dumper",
|
|
"--disable-static",
|
|
"--disable-tests",
|
|
"--disable-gtk-doc",
|
|
"--enable-introspection=no",
|
|
"--disable-vala"
|
|
],
|
|
"sources": [
|
|
{
|
|
"type": "archive",
|
|
"url": "https://launchpad.net/libdbusmenu/16.04/16.04.0/+download/libdbusmenu-16.04.0.tar.gz",
|
|
"mirror-urls": [
|
|
"https://sources.suse.com/SUSE:SLFO:Main:Build/libdbusmenu/a5b3e4717f09f90f9cd5568a5f933e8d/libdbusmenu-16.04.0.tar.gz",
|
|
"https://mirror.math.princeton.edu/pub/frugalware/frugalware-2.1/source/xlib/libdbusmenu/libdbusmenu-16.04.0.tar.gz",
|
|
"https://ftp.fr.openbsd.org/pub/OpenBSD/distfiles/libdbusmenu-16.04.0.tar.gz"
|
|
],
|
|
"sha256": "b9cc4a2acd74509435892823607d966d424bd9ad5d0b00938f27240a1bfa878a"
|
|
},
|
|
{
|
|
"type": "patch",
|
|
"paths": [
|
|
"0001-Fix-HAVE_VALGRIND-AM_CONDITIONAL.patch"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "ayatana-ido",
|
|
"buildsystem": "cmake-ninja",
|
|
"cleanup": [
|
|
"/include",
|
|
"/lib/pkgconfig"
|
|
],
|
|
"config-opts": [
|
|
"-DENABLE_INTROSPECTION=OFF"
|
|
],
|
|
"sources": [
|
|
{
|
|
"type": "git",
|
|
"url": "https://github.com/AyatanaIndicators/ayatana-ido.git",
|
|
"tag": "0.10.4",
|
|
"commit": "f968079b09e2310fefc3fc307359025f1c74b3eb",
|
|
"x-checker-data": {
|
|
"type": "git",
|
|
"tag-pattern": "^([\\d.]+)$"
|
|
}
|
|
},
|
|
{
|
|
"type": "patch",
|
|
"paths": [
|
|
"0001-Make-introspection-configurable.patch"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "libayatana-indicator",
|
|
"buildsystem": "cmake-ninja",
|
|
"cleanup": [
|
|
"/include",
|
|
"/lib/pkgconfig",
|
|
"/libexec",
|
|
"/share"
|
|
],
|
|
"sources": [
|
|
{
|
|
"type": "git",
|
|
"url": "https://github.com/AyatanaIndicators/libayatana-indicator.git",
|
|
"tag": "0.9.4",
|
|
"commit": "611bb384b73fa6311777ba4c41381a06f5b99dad",
|
|
"x-checker-data": {
|
|
"type": "git",
|
|
"tag-pattern": "^([\\d.]+)$"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"sources": [
|
|
{
|
|
"type": "git",
|
|
"url": "https://github.com/AyatanaIndicators/libayatana-appindicator.git",
|
|
"tag": "0.5.94",
|
|
"commit": "31e8bb083b307e1cc96af4874a94707727bd1e79",
|
|
"x-checker-data": {
|
|
"type": "git",
|
|
"tag-pattern": "^([\\d.]+)$"
|
|
}
|
|
}
|
|
]
|
|
}
|