{
 "app_id": "com.leobelisario.LYNXAtlas",
 "source_url": "https://raw.githubusercontent.com/LeonardoJoordan/LYNX-Atlas/main/com.leobelisario.LYNXAtlas.yaml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "47",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--socket=fallback-x11",
  "--socket=wayland",
  "--share=ipc",
  "--device=dri",
  "--filesystem=home:ro"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-20T13:04:05.389893+00:00",
 "manifest": {
  "app-id": "com.leobelisario.LYNXAtlas",
  "runtime": "org.gnome.Platform",
  "runtime-version": "47",
  "sdk": "org.gnome.Sdk",
  "command": "lynx-atlas",
  "finish-args": [
   "--socket=fallback-x11",
   "--socket=wayland",
   "--share=ipc",
   "--device=dri",
   "--filesystem=home:ro"
  ],
  "modules": [
   {
    "name": "dependencias",
    "buildsystem": "simple",
    "build-options": {
     "build-args": [
      "--share=network"
     ]
    },
    "build-commands": [
     "pip3 install --no-cache-dir --prefix=/app -r requirements.txt"
    ],
    "sources": [
     {
      "type": "file",
      "path": "requirements.txt"
     }
    ]
   },
   {
    "name": "lynx-atlas",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm644 main.py /app/share/lynx-atlas/main.py",
     "install -Dm644 bridge.py /app/share/lynx-atlas/bridge.py",
     "mkdir -p /app/share/lynx-atlas/core /app/share/lynx-atlas/ui /app/share/lynx-atlas/assets/icons",
     "install -m644 core/*.py /app/share/lynx-atlas/core/",
     "install -m644 ui/*.qml /app/share/lynx-atlas/ui/",
     "install -m644 assets/icons/*.png /app/share/lynx-atlas/assets/icons/",
     "install -Dm644 assets/icons/lynx-atlas_32.png /app/share/icons/hicolor/32x32/apps/com.leobelisario.LYNXAtlas.png",
     "install -Dm644 assets/icons/lynx-atlas_48.png /app/share/icons/hicolor/48x48/apps/com.leobelisario.LYNXAtlas.png",
     "install -Dm644 assets/icons/lynx-atlas_64.png /app/share/icons/hicolor/64x64/apps/com.leobelisario.LYNXAtlas.png",
     "install -Dm644 assets/icons/lynx-atlas_128.png /app/share/icons/hicolor/128x128/apps/com.leobelisario.LYNXAtlas.png",
     "install -Dm644 assets/icons/lynx-atlas_256.png /app/share/icons/hicolor/256x256/apps/com.leobelisario.LYNXAtlas.png",
     "install -Dm644 assets/icons/lynx-atlas_512.png /app/share/icons/hicolor/512x512/apps/com.leobelisario.LYNXAtlas.png",
     "mkdir -p /app/share/doc/lynx-atlas/licenses",
     "install -m644 LICENSE README.md THIRD_PARTY_NOTICES.md /app/share/doc/lynx-atlas/",
     "install -m644 licenses/* /app/share/doc/lynx-atlas/licenses/",
     "mkdir -p /app/bin /app/share/applications",
     "cat << 'EOF' > /app/bin/lynx-atlas\n#!/bin/sh\nset -eu\nexport PYTHONPATH=\"/app/share/lynx-atlas${PYTHONPATH:+:$PYTHONPATH}\"\nexport PYTHONDONTWRITEBYTECODE=1\n# main.py abre index.db por caminho relativo; /app \u00e9 somente leitura.\nmkdir -p \"$XDG_DATA_HOME\"\ncd \"$XDG_DATA_HOME\"\nexec python3 /app/share/lynx-atlas/main.py \"$@\"\nEOF\n",
     "chmod +x /app/bin/lynx-atlas",
     "cat << 'EOF' > /app/share/applications/com.leobelisario.LYNXAtlas.desktop\n[Desktop Entry]\nName=LYNX Atlas\nGenericName=Pesquisa e indexa\u00e7\u00e3o de PDFs\nComment=Fast PDF Search & Indexing\nExec=lynx-atlas\nIcon=com.leobelisario.LYNXAtlas\nTerminal=false\nType=Application\nCategories=Office;Utility;\nKeywords=PDF;Busca;Pesquisa;\nEOF\n"
    ],
    "sources": [
     {
      "type": "dir",
      "path": ".",
      "skip": [
       ".git",
       ".agents",
       ".codex",
       ".venv",
       "venv",
       "__pycache__",
       "core/__pycache__",
       "tests",
       ".flatpak-builder",
       "build-dir",
       "repo",
       "*.flatpak",
       "index.db*"
      ]
     }
    ]
   }
  ]
 }
}