{
 "app_id": "dev.restfox.Restfox",
 "source_url": "https://raw.githubusercontent.com/flathub/dev.restfox.Restfox/master/dev.restfox.Restfox.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--device=dri",
  "--filesystem=home"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:09:44.137167+00:00",
 "manifest": {
  "app-id": "dev.restfox.Restfox",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "24.08",
  "command": "restfox",
  "rename-desktop-file": "restfox.desktop",
  "rename-icon": "dev.restfox.Restfox",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "separate-locales": false,
  "finish-args": [
   "--device=dri",
   "--filesystem=home",
   "--share=ipc",
   "--share=network",
   "--socket=x11"
  ],
  "modules": [
   {
    "name": "restfox",
    "build-commands": [
     "ar -o -x restfox.deb",
     "tar --extract --file data.tar.gz",
     "cp --preserve --recursive usr/* /app",
     "desktop-file-edit --set-key Exec --set-value \"restfox %U\" /app/share/applications/restfox.desktop",
     "install -D --mode 0644 /app/lib/restfox/resources/app/ui/favicon.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "install -D --mode 0644 --target-directory /app/share/metainfo/ ${FLATPAK_ID}.metainfo.xml",
     "install -D --mode 0755 entrypoint.sh /app/bin/restfox"
    ],
    "buildsystem": "simple",
    "sources": [
     {
      "type": "file",
      "path": "dev.restfox.Restfox.metainfo.xml"
     },
     {
      "type": "file",
      "dest-filename": "restfox.deb",
      "sha256": "ce96c16ad7c686690134323e18e625a537584e415e6f6ca3fd8f957309f3b2ec",
      "url": "https://github.com/flawiddsouza/Restfox/releases/download/v0.40.0/restfox_0.40.0_amd64.deb",
      "x-checker-data": {
       "is-main-source": true,
       "type": "json",
       "url": "https://api.github.com/repos/flawiddsouza/Restfox/releases/latest",
       "url-query": ".assets[] | select(.name == \"restfox_\" + $version + \"_amd64.deb\") | .browser_download_url",
       "version-query": ".tag_name | sub(\"^v\"; \"\")"
      }
     },
     {
      "type": "script",
      "commands": [
       "export TMPDIR=\"${XDG_RUNTIME_DIR}/app/${FLATPAK_ID}\"",
       "exec zypak-wrapper /app/lib/restfox/Restfox \"$@\""
      ],
      "dest-filename": "entrypoint.sh"
     }
    ]
   }
  ]
 }
}