{
 "app_id": "org.cloudredirect.CloudRedirect",
 "source_url": "https://raw.githubusercontent.com/Selectively11/CloudRedirect/master/flatpak/org.cloudredirect.CloudRedirect.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--filesystem=home",
  "--share=network",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=org.freedesktop.portal.Desktop",
  "--talk-name=org.freedesktop.Flatpak"
 ],
 "module_count": 3,
 "fetched_at": "2026-10-05T15:56:22.405990+00:00",
 "manifest": {
  "app-id": "org.cloudredirect.CloudRedirect",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.10",
  "sdk": "org.kde.Sdk",
  "command": "cloud-redirect-ui-wrapper",
  "separate-locales": false,
  "no-debuginfo": true,
  "finish-args": [
   "--filesystem=home",
   "--share=network",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.freedesktop.portal.Desktop",
   "--talk-name=org.freedesktop.Flatpak"
  ],
  "modules": [
   {
    "name": "cloud-redirect-native",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm755 cloud_redirect.so /app/share/cloud_redirect/cloud_redirect.so",
     "install -Dm755 cloud_redirect_cli /app/share/cloud_redirect/cloud_redirect_cli",
     "install -Dm644 cloudredirect.flatpakrepo /app/share/cloud_redirect/cloudredirect.flatpakrepo"
    ],
    "sources": [
     {
      "type": "file",
      "path": "cloud_redirect.so"
     },
     {
      "type": "file",
      "path": "cloud_redirect_cli"
     },
     {
      "type": "file",
      "path": "cloudredirect.flatpakrepo"
     }
    ]
   },
   {
    "name": "cloud-redirect-ui",
    "buildsystem": "cmake-ninja",
    "no-debuginfo": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "dir",
      "path": "../ui-linux"
     },
     {
      "type": "file",
      "path": "../Version.props"
     }
    ],
    "post-install": [
     "cat > /app/bin/cloud-redirect-ui-wrapper <<'EOF'\n#!/bin/bash\n# Path to bundled native binary for the deployer\n# 32-bit .so for Steam hooking (deployed to ~/.local/share/SLSsteam/)\nexport CR_BUNDLED_SO=\"/app/share/cloud_redirect/cloud_redirect.so\"\n# 32-bit CLI for cloud-provider migration (deployed alongside the .so).\nexport CR_BUNDLED_CLI=\"/app/share/cloud_redirect/cloud_redirect_cli\"\nexec /app/bin/cloud-redirect-ui \"$@\"\nEOF\nchmod +x /app/bin/cloud-redirect-ui-wrapper\n"
    ]
   },
   {
    "name": "desktop-file",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm644 org.cloudredirect.CloudRedirect.desktop /app/share/applications/org.cloudredirect.CloudRedirect.desktop",
     "install -Dm644 org.cloudredirect.CloudRedirect.metainfo.xml /app/share/metainfo/org.cloudredirect.CloudRedirect.metainfo.xml",
     "for size in 16x16 32x32 48x48 64x64 128x128 256x256 512x512; do\n  install -Dm644 \"icons/${size}/apps/cloudredirect.png\" \\\n    \"/app/share/icons/hicolor/${size}/apps/org.cloudredirect.CloudRedirect.png\"\ndone\n",
     "gtk-update-icon-cache -f -t /app/share/icons/hicolor || true"
    ],
    "sources": [
     {
      "type": "file",
      "path": "org.cloudredirect.CloudRedirect.desktop"
     },
     {
      "type": "file",
      "path": "org.cloudredirect.CloudRedirect.metainfo.xml"
     },
     {
      "type": "dir",
      "path": "icons",
      "dest": "icons"
     }
    ]
   }
  ]
 }
}