{
 "app_id": "org.upscayl.Upscayl",
 "source_url": "https://raw.githubusercontent.com/flathub/org.upscayl.Upscayl/master/org.upscayl.Upscayl.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=home"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:16:52.152067+00:00",
 "manifest": {
  "id": "org.upscayl.Upscayl",
  "sdk": "org.freedesktop.Sdk",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "command": "upscayl-run",
  "separate-locales": false,
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--filesystem=home",
   "--share=network",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
  ],
  "modules": [
   {
    "name": "zypak",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/refi64/zypak",
      "tag": "v2025.09",
      "commit": "693a71c5ffa80ec9c9ce2ae03b1ccc493c698e53",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "upscayl",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "file",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/upscayl/upscayl/releases/download/v2.15.0/upscayl-2.15.0-linux.zip",
      "sha256": "3a43bfa80ba10a5ec1dcbbec9e6620b465f6aa541b7280b6bbabf8e306b67053",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/upscayl/upscayl/releases/latest",
       "tag-query": ".tag_name",
       "version-query": "$tag | sub(\"^v\"; \"\")",
       "timestamp-query": ".published_at",
       "url-query": "\"https://github.com/upscayl/upscayl/releases/download/v\" + $version + \"/upscayl-\" + $version + \"-linux.zip\""
      },
      "dest-filename": "upscayl-linux"
     },
     {
      "type": "file",
      "path": "org.upscayl.Upscayl.metainfo.xml"
     },
     {
      "type": "script",
      "dest-filename": "upscayl-run",
      "commands": [
       "zypak-wrapper /app/upscayl/upscayl --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations"
      ]
     }
    ],
    "build-commands": [
     "install -d /app/upscayl",
     "unzip upscayl-linux -d /app/upscayl",
     "install upscayl-run /app/bin/",
     "install -Dm644 /app/upscayl/resources/512x512.png /app/share/icons/hicolor/512x512/apps/org.upscayl.Upscayl.png",
     "install -Dm644 /app/upscayl/resources/128x128.png /app/share/icons/hicolor/128x128/apps/org.upscayl.Upscayl.png",
     "install -Dp -m644 org.upscayl.Upscayl.metainfo.xml /app/share/metainfo/org.upscayl.Upscayl.metainfo.xml",
     "touch org.upscayl.Upscayl.desktop",
     "desktop-file-edit --set-key=Exec --set-value=\"upscayl-run %U\" \\\n                  --set-key=Icon --set-value=org.upscayl.Upscayl \\\n                  --set-key=Comment --set-value=\"Upscale Images with AI\" \\\n                  --set-key=Name --set-value=\"Upscayl\" \\\n                  --set-key=StartupNotify --set-value=false \\\n                  --set-key=Categories --set-value=\"ImageProcessing;RasterGraphics;Graphics;\" \\\n                  --set-key=Type --set-value=Application \\\n                  org.upscayl.Upscayl.desktop",
     "install -Dm644 org.upscayl.Upscayl.desktop /app/share/applications/org.upscayl.Upscayl.desktop"
    ]
   }
  ]
 }
}