# Flatpak manifest for Subby. # # Status: starting point. GTK4, libadwaita and PyGObject come from the GNOME # runtime; the remaining Python deps must be vendored as wheels for Flathub's # offline builder. Generate that module once with: # # ./packaging/flatpak/gen-deps.sh # # which writes python3-deps.yaml next to this file (committed, then referenced # below). Note: transcription runs on CPU inside the sandbox — the CUDA wheels # are intentionally excluded. app-id: io.github.mikkel_mouridsen.Subby runtime: org.gnome.Platform runtime-version: '47' sdk: org.gnome.Sdk command: subby finish-args: - --share=network # Jimaku API, YouTube, model downloads - --share=ipc - --socket=wayland - --socket=fallback-x11 - --device=dri - --filesystem=home # read videos, write subtitles next to them # asbplayer connects to Subby's loopback WebSocket server (default :8766). - --talk-name=org.freedesktop.Flatpak # ffmpeg binary for audio extraction + ffsubsync. add-extensions: org.freedesktop.Platform.ffmpeg-full: directory: lib/ffmpeg version: '24.08' add-ld-path: '.' autodownload: true autodelete: false cleanup: - /include - /lib/pkgconfig - /share/man - '*.a' - '*.la' modules: # Vendored Python dependencies — generated, see gen-deps.sh. - python3-deps.yaml - name: subby buildsystem: simple build-commands: - pip3 install --no-index --no-build-isolation --prefix=${FLATPAK_DEST} . - install -Dm644 data/icons/io.github.mikkel_mouridsen.Subby.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/io.github.mikkel_mouridsen.Subby.svg - install -Dm644 data/io.github.mikkel_mouridsen.Subby.desktop ${FLATPAK_DEST}/share/applications/io.github.mikkel_mouridsen.Subby.desktop - install -Dm644 data/io.github.mikkel_mouridsen.Subby.metainfo.xml ${FLATPAK_DEST}/share/metainfo/io.github.mikkel_mouridsen.Subby.metainfo.xml sources: - type: dir path: ../..