{
 "app_id": "org.nuicpp.nui_sftp",
 "source_url": "https://raw.githubusercontent.com/flathub/org.nuicpp.nui_sftp/master/org.nuicpp.nui_sftp.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--socket=ssh-auth",
  "--device=dri",
  "--filesystem=host"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-17T16:16:10.199461+00:00",
 "manifest": {
  "id": "org.nuicpp.nui_sftp",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm21",
   "org.freedesktop.Sdk.Extension.node24"
  ],
  "command": "nui-sftp",
  "finish-args": [
   "--share=network",
   "--share=ipc",
   "--filesystem=host",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=ssh-auth",
   "--device=dri"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig"
  ],
  "modules": [
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --prefix=/app",
     "./b2 --with-program_options --with-filesystem --with-system --with-serialization --with-thread --with-mpi --with-iostreams --with-asio --with-process install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archives.boost.io/release/1.90.0/source/boost_1_90_0.tar.gz",
      "sha256": "5e93d582aff26868d581a52ae78c7d8edf3f3064742c6e77901a1f18a437eea9"
     }
    ]
   },
   {
    "name": "libssh",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DWITH_EXAMPLES=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://git.libssh.org/projects/libssh.git/",
      "tag": "libssh-0.11.4",
      "commit": "ca9c055d7c78ce357346ac7c2b14047568d47aa1"
     }
    ]
   },
   {
    "name": "interval-tree",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/include",
     "cp -r include/interval-tree /app/include/interval-tree"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/5cript/interval-tree.git",
      "tag": "v3.1.1",
      "commit": "dab26b24cd1b163b5640cf6dd9d52968b3532869"
     }
    ]
   },
   {
    "name": "nlohmann-json",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/nlohmann/json.git",
      "tag": "v3.12.0",
      "commit": "55f93686c01528224f448c19128836e7df245f72"
     }
    ]
   },
   {
    "name": "nui-sftp-frontend",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/frontend",
     "cp -r * /app/frontend"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/5cript/nui-sftp/releases/download/v1.3.1/nui-sftp-linux-frontend_1.3.1.tar.gz",
      "sha256": "a8ac5edaac2a1b4ce21d48c90f0c3502572b5f3ec1ed225aa42f5c97c10d1caf"
     }
    ]
   },
   {
    "name": "nui-sftp",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "no-make-install": true,
    "build-options": {
     "env": {
      "CC": "clang",
      "CXX": "clang++",
      "LD": "lld",
      "INSTALL_TARGET": "/app",
      "Boost_ROOT": "/app"
     },
     "append-path": "/usr/lib/sdk/llvm21/bin:/usr/lib/sdk/node24/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm21/lib"
    },
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_C_COMPILER=clang",
     "-DCMAKE_CXX_COMPILER=clang++",
     "-DCMAKE_LINKER=lld",
     "-DCMAKE_CXX_EXTENSIONS=ON",
     "-DCMAKE_CXX_STANDARD=23",
     "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON",
     "-DOFFLINE_BUILD=ON",
     "-DJSON_Diagnostics=ON",
     "-DFORCED_PROJECT_VERSION=1.1.0"
    ],
    "post-install": [
     "OMIT_FRONTEND=true BUILD_DIRECTORY=\"$(pwd)\" ../scripts/deploy.sh",
     "mkdir -p /app/assets/icons",
     "cp -r ../dependencies/icons/* /app/assets/icons/",
     "cp ../dependencies/icons/os_folders/windows/11/folder_main.png /app/assets/icons/folder_main.png",
     "desktop-file-edit --set-icon=org.nuicpp.nui_sftp ../org.nuicpp.nui_sftp.desktop",
     "install -Dm644 ../deploy-meta/org.nuicpp.nui_sftp.metainfo.xml /app/share/metainfo/org.nuicpp.nui_sftp.metainfo.xml",
     "install -Dm644 ../org.nuicpp.nui_sftp.desktop /app/share/applications/org.nuicpp.nui_sftp.desktop",
     "install -Dm644 ../NUI-SFTP_Logo-01_nopad.svg /app/share/icons/hicolor/scalable/apps/org.nuicpp.nui_sftp.svg"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/5cript/nui-sftp",
      "tag": "v1.3.1",
      "commit": "3f9419a53aa612dc97abef755ede0308fba5e64a"
     },
     {
      "type": "archive",
      "url": "https://s3.g.s4.mega.io/jgemkib4a5fte35rktt5wxrwkw4ejk4ybemkf/nui-scp/icons.tar.gz",
      "sha256": "30ffa48c3a509e878db31a1e5d80376242852e34d9c2aa3b44d2e3d1da2ce32e",
      "dest": "dependencies/icons",
      "strip-components": 0
     },
     {
      "type": "git",
      "url": "https://github.com/5cript/nui-sftp-deploy",
      "tag": "flatpak/1.3.1",
      "commit": "55806cc30c9defcd1c520dfa48d72f17c673527b",
      "disable-submodules": true,
      "dest": "deploy-meta"
     },
     {
      "type": "file",
      "url": "https://s3.g.s4.mega.io/jgemkib4a5fte35rktt5wxrwkw4ejk4ybemkf/nui-scp/images/NUI-SFTP_Logo-01_nopad.svg",
      "sha256": "cf0fc442069dfd28bd8b7769da6dfdca92111044ea9817197716ed9bfada3869"
     }
    ]
   }
  ]
 }
}