{
 "app_id": "io.github.hmlendea.geforcenow-electron",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.hmlendea.geforcenow-electron/master/io.github.hmlendea.geforcenow-electron.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-run/app/com.discordapp.Discord:create",
  "--filesystem=/run/udev:ro"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:11:14.681506+00:00",
 "manifest": {
  "app-id": "io.github.hmlendea.geforcenow-electron",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "separate-locales": false,
  "command": "start-geforcenow-electron",
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=all",
   "--socket=pulseaudio",
   "--share=network",
   "--filesystem=xdg-run/app/com.discordapp.Discord:create",
   "--filesystem=/run/udev:ro"
  ],
  "modules": [
   {
    "name": "geforcenow-electron",
    "buildsystem": "simple",
    "build-commands": [
     "unzip -d geforcenow-electron geforcenow-electron_*.zip",
     "rm geforcenow-electron_*.zip",
     "cp -r geforcenow-electron /app",
     "install -Dm 644 io.github.hmlendea.geforcenow-electron.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png",
     "install -Dm 644 io.github.hmlendea.geforcenow-electron.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm 644 io.github.hmlendea.geforcenow-electron.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.appdata.xml",
     "install -Dm 755 start-geforcenow-electron.sh /app/bin/start-geforcenow-electron"
    ],
    "sources": [
     {
      "type": "file",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/hmlendea/gfn-electron/releases/download/v3.0.3/geforcenow-electron_3.0.3_linux.zip",
      "sha256": "4010490485d1ccb55a2594b78011622d8f93e248ed389113fb1d3fdab5398a45",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/hmlendea/gfn-electron/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": ".assets[] | select(.name==\"geforcenow-electron_\" + $version + \"_linux.zip\") | .browser_download_url"
      }
     },
     {
      "type": "file",
      "path": "io.github.hmlendea.geforcenow-electron.metainfo.xml"
     },
     {
      "type": "file",
      "path": "io.github.hmlendea.geforcenow-electron.png"
     },
     {
      "type": "file",
      "path": "io.github.hmlendea.geforcenow-electron.desktop"
     },
     {
      "type": "script",
      "commands": [
       "for i in {0..9}; do",
       "test -S $XDG_RUNTIME_DIR/discord-ipc-$i || ln -sf {app/com.discordapp.Discord,$XDG_RUNTIME_DIR}/discord-ipc-$i;",
       "done"
      ]
     },
     {
      "type": "script",
      "dest-filename": "start-geforcenow-electron.sh",
      "commands": [
       "export TMPDIR=\"$XDG_RUNTIME_DIR/app/$FLATPAK_ID\"",
       "exec zypak-wrapper /app/geforcenow-electron/geforcenow-electron /app/geforcenow-electron/geforcenow-electron --ozone-platform-hint=auto \"$@\""
      ]
     }
    ]
   }
  ]
 }
}