{
 "app_id": "com.github.IsmaelMartinez.teams_for_linux",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.IsmaelMartinez.teams_for_linux/master/com.github.IsmaelMartinez.teams_for_linux.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=all",
  "--filesystem=home",
  "--filesystem=xdg-run/pipewire-0",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=org.gtk.Notifications",
  "--talk-name=org.freedesktop.ScreenSaver",
  "--talk-name=org.freedesktop.PowerManagement",
  "--talk-name=org.gnome.SessionManager",
  "--talk-name=com.canonical.Unity",
  "--system-talk-name=org.freedesktop.login1"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:07:24.905170+00:00",
 "manifest": {
  "app-id": "com.github.IsmaelMartinez.teams_for_linux",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "teams-for-linux",
  "separate-locales": false,
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--share=network",
   "--device=all",
   "--filesystem=home",
   "--filesystem=xdg-run/pipewire-0",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.freedesktop.PowerManagement",
   "--talk-name=org.freedesktop.ScreenSaver",
   "--talk-name=org.gtk.Notifications",
   "--talk-name=org.gnome.SessionManager",
   "--talk-name=com.canonical.Unity",
   "--system-talk-name=org.freedesktop.login1",
   "--env=XDG_CURRENT_DESKTOP=Unity",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
  ],
  "rename-desktop-file": "teams-for-linux.desktop",
  "rename-icon": "teams-for-linux",
  "modules": [
   {
    "name": "teams-for-linux",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "file",
      "dest-filename": "teams-for-linux.deb",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/IsmaelMartinez/teams-for-linux/releases/download/v2.20.1/teams-for-linux_2.20.1_amd64.deb",
      "sha256": "62ee5733dc35cfad84ecc6fe15f09fd74e518ec91eefd0759bae60c775e74d8d",
      "x-checker-data": {
       "is-main-source": true,
       "type": "json",
       "url": "https://api.github.com/repos/IsmaelMartinez/teams-for-linux/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "timestamp-query": ".published_at",
       "url-query": ".assets | map(.browser_download_url | select(endswith(\"_amd64.deb\"))) | first"
      }
     },
     {
      "type": "file",
      "dest-filename": "teams-for-linux.deb",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/IsmaelMartinez/teams-for-linux/releases/download/v2.20.1/teams-for-linux_2.20.1_arm64.deb",
      "sha256": "3c956f7692b17d954076c4d81a1f35ff5fd86f3aee43cd729de2c1eef04115e4",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/IsmaelMartinez/teams-for-linux/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "timestamp-query": ".published_at",
       "url-query": ".assets | map(.browser_download_url | select(endswith(\"_arm64.deb\"))) | first"
      }
     },
     {
      "type": "file",
      "dest-filename": "com.github.IsmaelMartinez.teams_for_linux.metainfo.xml",
      "url": "https://raw.githubusercontent.com/IsmaelMartinez/teams-for-linux/v2.20.1/com.github.IsmaelMartinez.teams_for_linux.appdata.xml",
      "sha256": "6aef8d37c0e970dcbff44dc2ac3538b639e2eca83fe592078020b64013e51237",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/IsmaelMartinez/teams-for-linux/releases/latest",
       "tag-query": ".tag_name",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "timestamp-query": ".published_at",
       "url-query": "\"https://raw.githubusercontent.com/IsmaelMartinez/teams-for-linux/\" + $tag + \"/com.github.IsmaelMartinez.teams_for_linux.appdata.xml\""
      }
     },
     {
      "type": "script",
      "dest-filename": "teams-for-linux.sh",
      "commands": [
       "export TMPDIR=\"$XDG_RUNTIME_DIR/app/$FLATPAK_ID\"",
       "exec zypak-wrapper /app/teams-for-linux/teams-for-linux \"$@\""
      ]
     }
    ],
    "build-commands": [
     "ar x teams-for-linux.deb",
     "rm -f teams-for-linux.deb",
     "tar -xf data.tar.xz",
     "rm -f control.tar.gz data.tar.xz debian-binary",
     "cp -r opt/* usr/* $FLATPAK_DEST",
     "rm -rf opt usr",
     "install teams-for-linux.sh $FLATPAK_DEST/bin/teams-for-linux",
     "install -D -m 644 -t $FLATPAK_DEST/share/metainfo $FLATPAK_ID.metainfo.xml",
     "desktop-file-edit --set-key Exec --set-value \"teams-for-linux %U\" ${FLATPAK_DEST}/share/applications/teams-for-linux.desktop",
     "desktop-file-edit --set-key StartupWMClass --set-value \"com.github.IsmaelMartinez.teams_for_linux\" ${FLATPAK_DEST}/share/applications/teams-for-linux.desktop",
     "patch-electron-desktop-filename ${FLATPAK_DEST}/teams-for-linux/resources/app.asar",
     "rm -rf \"${FLATPAK_DEST}/share/icons/hicolor/1024x1024/\""
    ]
   }
  ]
 }
}