BlueGit

ict rusty-teams

Files

rusty-teams / packaging / linux / flatpak / io.github.danieldaeschle.RustyTeams.yml

io.github.danieldaeschle.RustyTeams.yml

io.github.danieldaeschle.RustyTeams.yml 2.9 KiB Download Raw
1# Flatpak manifest for Rusty Teams, attached to releases (packaging/linux/flatpak-bundle.sh).
2#
3# It repackages the prebuilt binary from package.sh's tarball (packaging/linux/flatpak-bundle.sh):
4# libwebrtc is downloaded during the cargo build, which flatpak-builder's offline build does not
5# allow, so there is no build-from-source manifest.
6#
7# The Teams session runs in the user's own Chromium- or Firefox-based browser on the host
8# (crates/browser, ADR 0003). The app finds, starts and stops it through `flatpak-spawn --host`
9# (crates/browser/src/host.rs, needs --talk-name=org.freedesktop.Flatpak below); the debug port
10# is reachable since the network is shared, and the profile under ~/.var/app is the same path
11# on the host.
12#
13# The app id must be reverse-DNS, so the desktop file and icon are renamed to it; the window's
14# Wayland app id stays rusty-teams (StartupWMClass in the desktop file pairs them on X11).
15id: io.github.danieldaeschle.RustyTeams
16runtime: org.freedesktop.Platform
17runtime-version: '26.08'
18sdk: org.freedesktop.Sdk
19command: teams
20rename-desktop-file: rusty-teams.desktop
21rename-icon: rusty-teams
22finish-args:
23 # Display: Wayland first; X11 only when no Wayland compositor is running.
24 - --socket=wayland
25 - --socket=fallback-x11
26 # X11 shared memory (MIT-SHM).
27 - --share=ipc
28 # Graph, the Teams services and the browser's debug port on 127.0.0.1.
29 - --share=network
30 # GPU for wgpu (Vulkan, or GL as a fallback) and cameras for video calls.
31 - --device=all
32 # Microphone and speakers for calls.
33 - --socket=pulseaudio
34 # Desktop toasts (ADR 0015) and the StatusNotifierItem tray icon.
35 - --talk-name=org.freedesktop.Notifications
36 - --talk-name=org.kde.StatusNotifierWatcher
37 # Finding, starting and stopping the host's browser through flatpak-spawn --host.
38 - --talk-name=org.freedesktop.Flatpak
39 # CalDAV app passwords in the desktop keyring (ADR 0019).
40 - --talk-name=org.freedesktop.secrets
41 # Downloaded files and attachments.
42 - --filesystem=xdg-download
43build-options:
44 no-debuginfo: true
45modules:
46 - name: rusty-teams
47 buildsystem: simple
48 build-commands:
49 - install -Dm755 bin/teams /app/bin/teams
50 - install -Dm644 share/applications/rusty-teams.desktop /app/share/applications/rusty-teams.desktop
51 # rename-desktop-file and rename-icon do not touch the metainfo: point it at the new names.
52 - >-
53 sed -e 's|<launchable type="desktop-id">rusty-teams.desktop<|<launchable type="desktop-id">io.github.danieldaeschle.RustyTeams.desktop<|'
54 -e 's|<icon type="stock">rusty-teams<|<icon type="stock">io.github.danieldaeschle.RustyTeams<|'
55 share/metainfo/io.github.danieldaeschle.RustyTeams.metainfo.xml
56 | install -Dm644 /dev/stdin /app/share/metainfo/io.github.danieldaeschle.RustyTeams.metainfo.xml
57 - 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/
58 sources:
59 - type: dir
60 path: stage