{
 "app_id": "com.bulkheados.CodexForLinux",
 "source_url": "https://raw.githubusercontent.com/BulkheadOS/codex-for-linux-and-friends/main/packaging/flatpak/com.bulkheados.CodexForLinux.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--socket=x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=home",
  "--talk-name=org.freedesktop.Notifications"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T17:40:27.245889+00:00",
 "manifest": {
  "app-id": "com.bulkheados.CodexForLinux",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "codex-for-linux",
  "finish-args": [
   "--share=network",
   "--socket=x11",
   "--socket=wayland",
   "--device=dri",
   "--filesystem=home",
   "--talk-name=org.freedesktop.Notifications"
  ],
  "modules": [
   {
    "name": "codex-for-linux-local-runtime",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "dir",
      "path": "../../dist/flatpak/runtime",
      "dest": "codex-runtime"
     },
     {
      "type": "file",
      "path": "com.bulkheados.CodexForLinux.desktop"
     },
     {
      "type": "file",
      "path": "com.bulkheados.CodexForLinux.metainfo.xml"
     },
     {
      "type": "file",
      "path": "com.bulkheados.CodexForLinux.svg"
     }
    ],
    "build-commands": [
     "mkdir -p /app/bin /app/share/applications /app/share/metainfo /app/share/codex-for-linux",
     "cp -a codex-runtime /app/share/codex-for-linux/runtime",
     "install -Dm644 com.bulkheados.CodexForLinux.desktop /app/share/applications/com.bulkheados.CodexForLinux.desktop",
     "install -Dm644 com.bulkheados.CodexForLinux.metainfo.xml /app/share/metainfo/com.bulkheados.CodexForLinux.metainfo.xml",
     "install -Dm644 com.bulkheados.CodexForLinux.svg /app/share/icons/hicolor/scalable/apps/com.bulkheados.CodexForLinux.svg",
     "cat > /app/bin/codex-for-linux <<'EOF'\n#!/usr/bin/env bash\nset -Eeuo pipefail\nexec /app/share/codex-for-linux/runtime/start.sh \"$@\"\nEOF\n",
     "chmod +x /app/bin/codex-for-linux"
    ]
   }
  ]
 }
}