# Flatpak manifest for Rusty Teams, attached to releases (packaging/linux/flatpak-bundle.sh). # # It repackages the prebuilt binary from package.sh's tarball (packaging/linux/flatpak-bundle.sh): # libwebrtc is downloaded during the cargo build, which flatpak-builder's offline build does not # allow, so there is no build-from-source manifest. # # The Teams session runs in the user's own Chromium- or Firefox-based browser on the host # (crates/browser, ADR 0003). The app finds, starts and stops it through `flatpak-spawn --host` # (crates/browser/src/host.rs, needs --talk-name=org.freedesktop.Flatpak below); the debug port # is reachable since the network is shared, and the profile under ~/.var/app is the same path # on the host. # # The app id must be reverse-DNS, so the desktop file and icon are renamed to it; the window's # Wayland app id stays rusty-teams (StartupWMClass in the desktop file pairs them on X11). id: io.github.danieldaeschle.RustyTeams runtime: org.freedesktop.Platform runtime-version: '26.08' sdk: org.freedesktop.Sdk command: teams rename-desktop-file: rusty-teams.desktop rename-icon: rusty-teams finish-args: # Display: Wayland first; X11 only when no Wayland compositor is running. - --socket=wayland - --socket=fallback-x11 # X11 shared memory (MIT-SHM). - --share=ipc # Graph, the Teams services and the browser's debug port on 127.0.0.1. - --share=network # GPU for wgpu (Vulkan, or GL as a fallback) and cameras for video calls. - --device=all # Microphone and speakers for calls. - --socket=pulseaudio # Desktop toasts (ADR 0015) and the StatusNotifierItem tray icon. - --talk-name=org.freedesktop.Notifications - --talk-name=org.kde.StatusNotifierWatcher # Finding, starting and stopping the host's browser through flatpak-spawn --host. - --talk-name=org.freedesktop.Flatpak # CalDAV app passwords in the desktop keyring (ADR 0019). - --talk-name=org.freedesktop.secrets # Downloaded files and attachments. - --filesystem=xdg-download build-options: no-debuginfo: true modules: - name: rusty-teams buildsystem: simple build-commands: - install -Dm755 bin/teams /app/bin/teams - install -Dm644 share/applications/rusty-teams.desktop /app/share/applications/rusty-teams.desktop # rename-desktop-file and rename-icon do not touch the metainfo: point it at the new names. - >- sed -e 's|rusty-teams.desktop<|io.github.danieldaeschle.RustyTeams.desktop<|' -e 's|rusty-teams<|io.github.danieldaeschle.RustyTeams<|' share/metainfo/io.github.danieldaeschle.RustyTeams.metainfo.xml | install -Dm644 /dev/stdin /app/share/metainfo/io.github.danieldaeschle.RustyTeams.metainfo.xml - mkdir -p /app/share/icons /app/share/doc && cp -R share/icons/hicolor /app/share/icons/ && cp -R share/doc/rusty-teams /app/share/doc/ sources: - type: dir path: stage