{
 "app_id": "net.retrodeck.retrodeck",
 "source_url": "https://raw.githubusercontent.com/flathub/net.retrodeck.retrodeck/master/net.retrodeck.retrodeck.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--device=all",
  "--filesystem=xdg-data/Steam",
  "--filesystem=xdg-run/app/com.discordapp.Discord:create",
  "--filesystem=/run/udev:ro",
  "--filesystem=~/.var/app/com.valvesoftware.Steam",
  "--filesystem=xdg-config/gtk-3.0:ro",
  "--filesystem=xdg-run/gamescope-0:ro",
  "--filesystem=host",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=xdg-run/pipewire-0",
  "--allow=multiarch",
  "--allow=bluetooth",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.freedesktop.PowerManagement.Inhibit",
  "--talk-name=org.freedesktop.ScreenSaver",
  "--talk-name=org.freedesktop.login1.Manager",
  "--unset-env=QEMU_AUDIO_DRV"
 ],
 "module_count": 10,
 "fetched_at": "2026-09-19T12:57:34.536697+00:00",
 "manifest": {
  "app-id": "net.retrodeck.retrodeck",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.10",
  "sdk": "org.kde.Sdk",
  "command": "retrodeck",
  "add-extensions": {
   "org.freedesktop.Platform.codecs_extra.i386": {
    "directory": "lib/i386-linux-gnu/codecs-extra",
    "version": "25.08-extra",
    "autodelete": false,
    "add-ld-path": "lib"
   }
  },
  "finish-args": [
   "--talk-name=org.freedesktop.ScreenSaver",
   "--talk-name=org.freedesktop.PowerManagement.Inhibit",
   "--talk-name=org.freedesktop.login1.Manager",
   "--share=ipc",
   "--device=all",
   "--allow=bluetooth",
   "--filesystem=host",
   "--filesystem=xdg-run/app/com.discordapp.Discord:create",
   "--filesystem=xdg-config/gtk-3.0:ro",
   "--filesystem=xdg-data/Steam:rw",
   "--filesystem=~/.var/app/com.valvesoftware.Steam:rw",
   "--filesystem=/run/udev:ro",
   "--env=GST_PLUGIN_SYSTEM_PATH=/app/lib32/gstreamer-1.0:/app/lib/gstreamer-1.0:/usr/lib/i386-linux-gnu/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0",
   "--filesystem=xdg-run/gamescope-0:ro",
   "--env=LD_LIBRARY_PATH=/usr/lib/extensions/vulkan/gamescope/lib",
   "--allow=multiarch",
   "--share=network",
   "--socket=pulseaudio",
   "--filesystem=xdg-run/pipewire-0",
   "--socket=wayland",
   "--env=SDL_VIDEO_WAYLAND_WMCLASS=net.retrodeck.retrodeck",
   "--env=QT_QPA_PLATFORM=wayland;wayland-egl;xcb",
   "--socket=x11",
   "--env=SDL_VIDEO_X11_WMCLASS=net.retrodeck.retrodeck",
   "--unset-env=QEMU_AUDIO_DRV"
  ],
  "cleanup": [
   "/include",
   "/share/ffmpeg",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/include",
   "/bin/glslangValidator",
   "/bin/zip*",
   "/bin/zstd*",
   "/lib/pkg-config",
   "/share/doc",
   "/share/gtk-doc",
   "/share/man",
   "/src",
   "*.a",
   "*.la"
  ],
  "modules": [
   {
    "name": "initialization",
    "buildsystem": "simple",
    "build-commands": [
     "\n# Create the retrodeck directory in the Flatpak destination\nmkdir -p ${FLATPAK_DEST}/retrodeck/\n\n# Create the version file vital for RetroDECK Framework\ncp version ${FLATPAK_DEST}/retrodeck/version\n\n# Print the version number to the console\necho \"Version is $(cat ${FLATPAK_DEST}/retrodeck/version)\"\n\n# Safelock to quit the build if version file is missing\nif [ ! -f ${FLATPAK_DEST}/retrodeck/version ]; then\n  echo \"Version file is missing! Terminating build.\"\n  exit 1\nfi\n\n# Initializing RO retrodeck config folder\nmkdir -p ${FLATPAK_DEST}/retrodeck/graphics\nmkdir -p ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/\nmkdir -p ${FLATPAK_DEST}/retrodeck/components\n"
    ],
    "sources": [
     {
      "type": "file",
      "path": "version"
     }
    ]
   },
   {
    "name": "rclone",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm755 rclone \"${FLATPAK_DEST}/bin/rclone\""
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/rclone/rclone/releases/download/v1.69.1/rclone-v1.69.1-linux-amd64.zip",
      "sha256": "231841f8d8029ae6cfca932b601b3b50d0e2c3c2cb9da3166293f1c3eae7d79c"
     }
    ]
   },
   {
    "name": "rsync",
    "no-autogen": true,
    "config-opts": [
     "--with-included-popt",
     "--with-included-zlib",
     "--disable-debug"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.samba.org/pub/rsync/src/rsync-3.4.3.tar.gz",
      "sha256": "c72e63ca3021cbc80ba86ec30102773f4c5631fbc492b52e773b3958f82a53d3",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 4217,
       "stable-only": true,
       "url-template": "https://download.samba.org/pub/rsync/src/rsync-$version.tar.gz"
      }
     }
    ],
    "modules": [
     {
      "name": "xxhash",
      "no-autogen": true,
      "make-install-args": [
       "PREFIX=${FLATPAK_DEST}",
       "DISPATCH=1"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://github.com/Cyan4973/xxHash/",
        "tag": "v0.8.3",
        "commit": "e626a72bc2321cd320e953a0ccf1584cad60f363",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 17583,
         "stable-only": true,
         "tag-template": "v$version"
        }
       }
      ]
     }
    ]
   },
   {
    "name": "p7zip",
    "no-autogen": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/p7zip-project/p7zip/archive/v17.04/p7zip-v17.04.tar.gz",
      "sha256": "ea029a2e21d2d6ad0a156f6679bd66836204aa78148a4c5e498fe682e77127ef"
     },
     {
      "type": "shell",
      "commands": [
       "sed -i 's|/usr/local|${FLATPAK_DEST}|g' makefile.common"
      ]
     }
    ],
    "post-install": [
     "mv \"${FLATPAK_DEST}/bin/7za\" \"${FLATPAK_DEST}/bin/7z\""
    ],
    "cleanup": [
     "/man"
    ]
   },
   {
    "name": "libxml2-compat",
    "config-opts": [
     "--prefix=/app/compat/xmlstarlet",
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/libxml2/2.13/libxml2-2.13.9.tar.xz",
      "sha256": "a2c9ae7b770da34860050c309f903221c67830c86e4a7e760692b803df95143a"
     }
    ],
    "cleanup": [
     "/compat/xmlstarlet/include",
     "/compat/xmlstarlet/lib/pkgconfig",
     "/compat/xmlstarlet/share"
    ]
   },
   {
    "name": "xmlstarlet",
    "config-opts": [
     "--disable-static-libs",
     "--with-libxml-libs-prefix=/app/compat/xmlstarlet/lib",
     "--with-libxml-include-prefix=/app/compat/xmlstarlet/include/libxml2",
     "--disable-build-docs"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/xmlstar/xmlstarlet-1.6.1.tar.gz",
      "sha256": "15d838c4f3375332fd95554619179b69e4ec91418a3a5296e7c631b7ed19e7ca"
     },
     {
      "type": "shell",
      "commands": [
       "cp -p /usr/share/automake-*/config.{sub,guess} .",
       "autoreconf -vfi"
      ]
     }
    ],
    "post-install": [
     "mv \"${FLATPAK_DEST}/compat/xmlstarlet/bin/xmllint\" \"${FLATPAK_DEST}/bin/xmllint\"",
     "mv \"${FLATPAK_DEST}/bin/xml\" \"${FLATPAK_DEST}/bin/xml.bin\"",
     "cat > \"${FLATPAK_DEST}/bin/xml\" << 'EOF'\n#!/bin/sh\nexport LD_LIBRARY_PATH=\"/app/compat/xmlstarlet/lib:${LD_LIBRARY_PATH}\"\nexec /app/bin/xml.bin \"$@\"\nEOF\n",
     "chmod +x \"${FLATPAK_DEST}/bin/xml\"",
     "ln -s \"xml\" \"${FLATPAK_DEST}/bin/xmlstarlet\""
    ]
   },
   {
    "name": "yq",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm755 yq_linux_amd64 ${FLATPAK_DEST}/bin/yq"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/mikefarah/yq/releases/download/v4.45.1/yq_linux_amd64",
      "sha256": "654d2943ca1d3be2024089eb4f270f4070f491a0610481d128509b2834870049"
     }
    ]
   },
   {
    "name": "install-components",
    "buildsystem": "simple",
    "build-commands": [
     "bash automation_tools/install_components.sh --cicd"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/azahar.tar.gz",
      "sha256": "745169485fe53d6d325a48db84f90f669333cf45f80ffb1ee27d59d1f6b605d6",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/cemu.tar.gz",
      "sha256": "e9d2d5a7e1d751e337eeee783f4523279d6474c5724bb845343baea15f83ea76",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/components_version_list.md",
      "sha256": "04fa2537b4cb77ee8411c3867ef4fbceb030d1bfaf869edd095bfd1ebf0c3993",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/desired_versions.sh",
      "sha256": "6e650be7be79527eb955e91d7ce36f9164e05955d98e4a9a4b131c0ce001f6c6",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/dolphin.tar.gz",
      "sha256": "a809c8e56e893866ef8d7ecca186b6b78193d061d4e631b62411c3b3f5f4c65b",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/duckstation.tar.gz",
      "sha256": "9688d4329e46f7fbebe13aa8224762b2f8209b1443b3e8d87a6f76c8f9989ebb",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/es-de.tar.gz",
      "sha256": "17f340220e767647b0942d77fe29617ddbed70f695e06be3778d1ff353d03885",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/flips.tar.gz",
      "sha256": "bd799fe4b6bf43e083b6381faec7a67c3615d14a2aa508ba92d05e8dfedebcc7",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/framework.tar.gz",
      "sha256": "5835e09cce3db64990fcac8acf55fc47d043d489fbac53cff32e3e3882d17e02",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/gzdoom.tar.gz",
      "sha256": "4615009ae0d8074d327fd7f486a5fc4c30ea8b022b1714a656c0d89bd6c9f67e",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/mame.tar.gz",
      "sha256": "a35ad3c6dedc0e1a1f9ce3996c4e96f623793b3a06b50e3a2ee1a382488cf336",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/melonds.tar.gz",
      "sha256": "a751ac81cf7debf68da55be55d9b491e64479c364f381d0fa9d3d9d7f600dfcd",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/openbor.tar.gz",
      "sha256": "a597c893b5e9a48e97af762b14724127279fb9a165bd198209cc165679b9ce00",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/pcsx2.tar.gz",
      "sha256": "c3cc0504298f02d1486e4cdc59f062a51cea5b5d477eee0141504b81c2b35889",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/pico-8.tar.gz",
      "sha256": "8e2c97150371e59f7a97c5aecf4fc9bc43b9fabb906bf7e9e4303f9d293768f0",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/portmaster.tar.gz",
      "sha256": "4717b82aff1139173d7e105d3c0b290c52219f7fb2d543c90893c4c90016ba26",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/ppsspp.tar.gz",
      "sha256": "ba26c56602b8d917612656a3557b0f07d121058c061d549507d59eaee362fda1",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/primehack.tar.gz",
      "sha256": "283cbd31a2f6e5d0d34838e034150421c008e142ee407ceb7fea64b049044cfe",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/retroarch.tar.gz",
      "sha256": "6cf4bfd0ef72e6ad16ec983132d9131a6501f2df1e025ee58900814245f22b45",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/rpcs3.tar.gz",
      "sha256": "e84d663dd923b74e8856550478b4a2de1f629a747db9185c3bdd94187cf0c104",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/ruffle.tar.gz",
      "sha256": "ff108c19ae80d2d1445c4a3b30c1ca9ba95e70683ddf38a458e4be4fb69077a1",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/solarus.tar.gz",
      "sha256": "ca16188731e9e6b4db838c1efcdf2572bf7de84ad790f1ef8ebe9c3618c4d3b6",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/steam-rom-manager.tar.gz",
      "sha256": "3fb5b0d23eb994871a05aa3a16f3377f07b03e1915f038d92170111abcb1fa50",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/vita3k.tar.gz",
      "sha256": "177c7bffecce29937ad3b94c0e50ee4e3cbeafaa66b8de7c40c7784af0b4fff7",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/xemu.tar.gz",
      "sha256": "bc2abec181800bef184757afa634f9c0b9b670c42b839f44f631b04310105002",
      "dest": "components"
     },
     {
      "type": "file",
      "url": "https://github.com/RetroDECK/components/releases/download/main-20260529-1747/xroar.tar.gz",
      "sha256": "a93ab974a32164a8074157363c0f2c2f6156d103ce674ccd5af4dc8749c452ff",
      "dest": "components"
     },
     {
      "type": "git",
      "url": "https://github.com/RetroDECK/RetroDECK",
      "commit": "d7c02e86f3da61b877566533f21c269300000ef6"
     }
    ]
   },
   {
    "name": "finisher",
    "buildsystem": "simple",
    "build-commands": [
     "if [ -d ${FLATPAK_DEST}/usr ]; then\n  mv -n ${FLATPAK_DEST}/usr/** ${FLATPAK_DEST}/share\n  rm -rf ${FLATPAK_DEST}/usr\nfi\n",
     "cp -f res/splash.svg ${FLATPAK_DEST}/retrodeck/graphics/splash.svg",
     "cp -rf res/extra_splashes/ ${FLATPAK_DEST}/retrodeck/graphics",
     "cp -rf res/folder-iconsets ${FLATPAK_DEST}/retrodeck/graphics",
     "cp -f res/icon.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg",
     "cp -f res/icon-configurator.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.configurator.svg",
     "mv -f -t ${FLATPAK_DEST}/retrodeck res/binding_icons",
     "mv -f -t ${FLATPAK_DEST}/retrodeck res/steam_grid",
     "mkdir -p ${FLATPAK_DEST}/tools",
     "cp -r tools/*.sh ${FLATPAK_DEST}/tools",
     "find ${FLATPAK_DEST}/tools -type f \\( -name \"*.sh\" -o -name \"*.py\" \\) -exec chmod +x {} \\;",
     "mkdir -p ${FLATPAK_DEST}/libexec",
     "cp -r functions/** \"${FLATPAK_DEST}/libexec/\"",
     "mv \"${FLATPAK_DEST}/libexec/retrodeck.sh\" \"${FLATPAK_DEST}/bin/retrodeck\"",
     "chmod +x \"${FLATPAK_DEST}/bin/retrodeck\"",
     "install -Dm755 net.retrodeck.retrodeck.desktop ${FLATPAK_DEST}/share/applications/net.retrodeck.retrodeck.desktop",
     "install -Dm755 net.retrodeck.retrodeck.Configurator.desktop ${FLATPAK_DEST}/share/applications/net.retrodeck.retrodeck.Configurator.desktop",
     "cp -r config ${FLATPAK_DEST}/retrodeck/config/",
     "ln -s ${FLATPAK_DEST}/tools/configurator.sh ${FLATPAK_DEST}/bin/configurator",
     "install -Dm 644 config/retrodeck/net.retrodeck.retrodeck.mime.xml /app/share/mime/packages/net.retrodeck.retrodeck.mime.xml",
     "install -Dm 644 net.retrodeck.retrodeck.metainfo.xml ${FLATPAK_DEST}/share/metainfo/net.retrodeck.retrodeck.metainfo.xml",
     "mkdir -p ${FLATPAK_DEST}/lib/i386-linux-gnu/codecs-extra",
     "if ! grep -q \"cooker\" \"${FLATPAK_DEST}/retrodeck/version\"; then\n  rm -f \"${FLATPAK_DEST}/tools/retrodeck_function_wrapper.sh\"\nfi\n",
     "ln -s \"/app/retrodeck/components/dolphin/share/dolphin-emu\" \"/app/share/dolphin-emu\""
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/RetroDECK/RetroDECK",
      "commit": "d7c02e86f3da61b877566533f21c269300000ef6"
     }
    ]
   }
  ]
 }
}