app-id: io.github.amarty2030.PhantomEar runtime: org.freedesktop.Platform runtime-version: '23.08' sdk: org.freedesktop.Sdk sdk-extensions: - org.freedesktop.Sdk.Extension.python311 command: phantomear finish-args: - --share=ipc - --socket=wayland - --socket=fallback-x11 - --share=network - --device=all - --socket=pulseaudio - --system-talk-name=org.freedesktop.portal.Desktop - --talk-name=org.freedesktop.portal.Desktop - --filesystem=xdg-config/phantomear:create - --filesystem=xdg-data/phantomear:create - --filesystem=host:ro build-options: append-path: /usr/lib/sdk/python311/bin env: - PYTHON=/usr/lib/sdk/python311/bin/python3 - PIP=/usr/lib/sdk/python311/bin/pip3 modules: - name: python311 buildsystem: simple build-commands: - /usr/lib/sdk/python311/install.sh - name: python-deps buildsystem: simple build-commands: - pip3 install --no-index --find-links=. --prefix=${FLATPAK_DEST} PyQt5==5.15.10 PyQt5-sip==12.13.0 openai>=1.0.0 requests>=2.31.0 python-dotenv>=1.0.0 numpy>=1.24.0 sounddevice>=0.4.6 faster-whisper>=1.0.0 sources: - type: dir path: wheels - name: meeting-ai buildsystem: simple build-commands: - install -Dm755 main.py ${FLATPAK_DEST}/share/meeting-ai/main.py - install -Dm644 overlay_ui.py ${FLATPAK_DEST}/share/meeting-ai/overlay_ui.py - install -Dm644 settings_dialog.py ${FLATPAK_DEST}/share/meeting-ai/settings_dialog.py - install -Dm644 ai_analyzer.py ${FLATPAK_DEST}/share/meeting-ai/ai_analyzer.py - install -Dm644 transcriber.py ${FLATPAK_DEST}/share/meeting-ai/transcriber.py - install -Dm644 audio_capture.py ${FLATPAK_DEST}/share/meeting-ai/audio_capture.py - install -Dm644 config.py ${FLATPAK_DEST}/share/meeting-ai/config.py - install -Dm644 i18n.py ${FLATPAK_DEST}/share/meeting-ai/i18n.py - install -Dm644 session_history.py ${FLATPAK_DEST}/share/meeting-ai/session_history.py - install -Dm644 flatpak/io.github.amarty2030.MeetingAI.desktop ${FLATPAK_DEST}/share/applications/io.github.amarty2030.MeetingAI.desktop - install -Dm644 flatpak/io.github.amarty2030.MeetingAI.metainfo.xml ${FLATPAK_DEST}/share/metainfo/io.github.amarty2030.MeetingAI.metainfo.xml - install -Dm644 assets/icon.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/io.github.amarty2030.MeetingAI.svg - | cat > meeting-ai-launcher <<'EOF' #!/bin/bash cd /app/share/meeting-ai exec python3 main.py "$@" EOF - install -Dm755 meeting-ai-launcher ${FLATPAK_DEST}/bin/meeting-ai sources: - type: dir path: ..