{
 "app_id": "ai.jan.Jan",
 "source_url": "https://raw.githubusercontent.com/flathub/ai.jan.Jan/master/ai.jan.Jan.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:04:23.006146+00:00",
 "manifest": {
  "id": "ai.jan.Jan",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable",
   "org.freedesktop.Sdk.Extension.node22"
  ],
  "command": "Jan",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/share/cmake",
   "*.a"
  ],
  "modules": [
   {
    "name": "volk",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DVOLK_INSTALL=ON"
    ],
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/zeux/volk/archive/refs/tags/vulkan-sdk-1.3.280.0.zip",
      "sha256": "178875134d36e8b90f7e3ec31171355df3b71f47eba49cca2f98158e6552b011"
     }
    ]
   },
   {
    "name": "vulkan-headers",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/KhronosGroup/Vulkan-Headers/archive/refs/tags/v1.3.283.zip",
      "sha256": "2094159c87fb4b6d8f734bd4cad59564cef7ef32feb00cf6d8ca7e75a84df921"
     }
    ]
   },
   {
    "name": "vulkan-tools",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/KhronosGroup/Vulkan-Tools/archive/refs/tags/v1.3.283.zip",
      "sha256": "11ec6b474e91dc8cb6e7f22891294ede549bb6ed67c19d230e293b3fc9610883"
     }
    ]
   },
   {
    "name": "jan",
    "buildsystem": "simple",
    "only-arches": [
     "x86_64"
    ],
    "build-options": {
     "append-path": "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/node22/bin",
     "env": {
      "CARGO_NET_OFFLINE": "true",
      "SKIP_BINARIES": "1",
      "RELEASE_CHANNEL": "stable",
      "AUTO_UPDATER_DISABLED": "true",
      "YARN_ENABLE_TELEMETRY": "0",
      "YARN_ENABLE_GLOBAL_CACHE": "false"
     }
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/janhq/jan/archive/refs/tags/v0.8.4.tar.gz",
      "sha256": "a04c1a6a29fc61f9d5005d2f5e6fedd078e267735f7671e230cc91c1e53e149a"
     },
     {
      "type": "archive",
      "url": "https://github.com/janhq/jan/releases/download/v0.8.4/jan-cargo-vendor-v0.8.4.tar.gz",
      "sha256": "5ed344ae6f16d416279dceedb1a1cabe678bf2f6f4351d9d859ccbab31978cbf",
      "dest": "src-tauri",
      "strip-components": 0
     },
     {
      "type": "archive",
      "url": "https://github.com/janhq/jan/releases/download/v0.8.4/jan-yarn-cache-v0.8.4.tar.gz",
      "sha256": "f609757e15911acc030cc26b3172eb58ab0059e7231bf0202bc482208001a008",
      "strip-components": 0
     },
     {
      "type": "file",
      "url": "https://repo.yarnpkg.com/4.5.3/packages/yarnpkg-cli/bin/yarn.js",
      "sha256": "dddc0b96ad2dca8d56a5302b56bf3cbf8210654474a6bf88877da61e866f3d46",
      "dest": ".yarn/releases",
      "dest-filename": "yarn-4.5.3.cjs"
     },
     {
      "type": "archive",
      "url": "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-linux-x64.zip",
      "sha256": "951ee2aee855f08595aeec6225226a298d3fea83a3dcd6465c09cbccdf7e848f",
      "dest": "prebuilt/bun",
      "strip-components": 1
     },
     {
      "type": "archive",
      "url": "https://github.com/astral-sh/uv/releases/download/0.11.31/uv-x86_64-unknown-linux-gnu.tar.gz",
      "sha256": "8cc1cd82d434ec565376f98bd938d4b715b5791a80ff2d3aa78821cf85091b4b",
      "dest": "prebuilt/uv",
      "strip-components": 1
     },
     {
      "type": "file",
      "path": "ai.jan.Jan.metainfo.xml"
     },
     {
      "type": "file",
      "path": "ai.jan.Jan.desktop"
     }
    ],
    "build-commands": [
     "install -Dm755 prebuilt/bun/bun src-tauri/resources/bin/bun",
     "install -Dm755 prebuilt/uv/uv src-tauri/resources/bin/uv",
     "install -Dm755 prebuilt/uv/uv src-tauri/resources/bin/uv-x86_64-unknown-linux-gnu",
     {
      "echo \"yarnPath": ".yarn/releases/yarn-4.5.3.cjs\" >> .yarnrc.yml"
     },
     "node .yarn/releases/yarn-4.5.3.cjs install",
     "cd src-tauri/plugins && node \"$FLATPAK_BUILDER_BUILDDIR/.yarn/releases/yarn-4.5.3.cjs\" install",
     "node -e \"const f='web-app/package.json',p=require('./'+f);p.version='0.8.4';require('fs').writeFileSync(f,JSON.stringify(p,null,2)+'\\n')\"",
     "node .yarn/releases/yarn-4.5.3.cjs build:tauri:plugin:api",
     "node .yarn/releases/yarn-4.5.3.cjs build:core",
     "node .yarn/releases/yarn-4.5.3.cjs build:extensions",
     "node .yarn/releases/yarn-4.5.3.cjs build:icon",
     "node .yarn/releases/yarn-4.5.3.cjs copy:assets:tauri",
     "cd src-tauri && cargo build --release --locked --features cli --bin jan-cli",
     "install -Dm755 src-tauri/target/release/jan-cli src-tauri/resources/bin/jan-cli",
     "node .yarn/releases/yarn-4.5.3.cjs tauri build --no-bundle",
     "install -Dm755 src-tauri/target/release/Jan /app/bin/Jan",
     "install -Dm755 src-tauri/resources/bin/bun /app/bin/bun",
     "install -Dm755 src-tauri/resources/bin/uv /app/bin/uv",
     "install -Dm755 src-tauri/resources/bin/jan-cli /app/bin/jan-cli",
     "install -Dm755 src-tauri/resources/bin/jan-cli /app/lib/Jan/resources/bin/jan-cli",
     "install -Dm644 src-tauri/resources/LICENSE /app/lib/Jan/resources/LICENSE",
     "install -Dm644 src-tauri/icons/128x128.png /app/share/icons/hicolor/128x128/apps/ai.jan.Jan.png",
     "install -Dm644 src-tauri/icons/32x32.png /app/share/icons/hicolor/32x32/apps/ai.jan.Jan.png",
     "install -Dm644 src-tauri/icons/128x128@2x.png /app/share/icons/hicolor/256x256@2/apps/ai.jan.Jan.png",
     "install -Dm644 ai.jan.Jan.desktop /app/share/applications/ai.jan.Jan.desktop",
     "install -Dm644 ai.jan.Jan.metainfo.xml /app/share/metainfo/ai.jan.Jan.metainfo.xml"
    ]
   }
  ]
 }
}