{
 "app_id": "com.gooseberrydevelopment.pinepods",
 "source_url": "https://raw.githubusercontent.com/flathub/com.gooseberrydevelopment.pinepods/master/com.gooseberrydevelopment.pinepods.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:08:01.346106+00:00",
 "manifest": {
  "id": "com.gooseberrydevelopment.pinepods",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "app",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--share=ipc",
   "--socket=pulseaudio",
   "--share=network"
  ],
  "modules": [
   "shared-modules/libappindicator/libappindicator-gtk3-12.10.json",
   {
    "name": "pinepods-client",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/madeofpendletonwool/PinePods/releases/download/0.7.9/Pinepods_0.7.9_amd64.deb",
      "sha256": "f737e28afcdb2bcd39d4206d36ddb013e5a176fc6aca8976623fbab49c0802c8",
      "only-arches": [
       "x86_64"
      ],
      "dest-filename": "pinepods.deb"
     },
     {
      "type": "file",
      "url": "https://github.com/madeofpendletonwool/PinePods/releases/download/0.7.9/Pinepods_0.7.9_arm64.deb",
      "sha256": "615bc20e5e234965a485fdd345904576e42be00cd6ae19bd1ff8f0df27f6d854",
      "only-arches": [
       "aarch64"
      ],
      "dest-filename": "pinepods.deb"
     }
    ],
    "build-commands": [
     "ar -x pinepods.deb",
     "# Extract the data archive using the correct format\nif [ -f data.tar.xz ]; then\n  tar -xf data.tar.xz\nelif [ -f data.tar.zst ]; then\n  tar --use-compress-program=unzstd -xf data.tar.zst\nelif [ -f data.tar.bz2 ]; then\n  tar -xf data.tar.bz2\nelif [ -f data.tar.gz ]; then\n  tar -xf data.tar.gz\nelse\n  echo \"Could not find data archive in .deb package\"\n  ls -la\n  exit 1\nfi\n",
     "desktop-file-edit --set-icon=com.gooseberrydevelopment.pinepods --set-key=Exec --set-value=app usr/share/applications/Pinepods.desktop",
     "mkdir -p /app/bin",
     "cp -r usr/bin/* /app/bin",
     "install -Dm644 usr/share/icons/hicolor/32x32/apps/app.png /app/share/icons/hicolor/32x32/apps/com.gooseberrydevelopment.pinepods.png",
     "install -Dm644 usr/share/icons/hicolor/128x128/apps/app.png /app/share/icons/hicolor/128x128/apps/com.gooseberrydevelopment.pinepods.png",
     "install -Dm644 usr/share/icons/hicolor/256x256@2/apps/app.png /app/share/icons/hicolor/256x256@2/apps/com.gooseberrydevelopment.pinepods.png",
     "install -Dm644 usr/share/applications/Pinepods.desktop /app/share/applications/com.gooseberrydevelopment.pinepods.desktop",
     "install -Dm644 usr/share/metainfo/com.gooseberrydevelopment.pinepods.metainfo.xml /app/share/metainfo/com.gooseberrydevelopment.pinepods.metainfo.xml",
     "mkdir -p /app/share/licenses/${FLATPAK_ID}/pinepods/",
     "cp /app/share/licenses/${FLATPAK_ID}/libdbusmenu/COPYING-GPL3 /app/share/licenses/${FLATPAK_ID}/pinepods/COPYING"
    ]
   }
  ]
 }
}