{
 "app_id": "io.github.Archeb.opentrace",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.Archeb.opentrace/master/io.github.Archeb.opentrace.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "49",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri",
  "--talk-name=org.freedesktop.Flatpak"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:10:14.746956+00:00",
 "manifest": {
  "app-id": "io.github.Archeb.opentrace",
  "runtime": "org.gnome.Platform",
  "runtime-version": "49",
  "sdk": "org.gnome.Sdk",
  "separate-locales": false,
  "rename-icon": "opentrace",
  "rename-desktop-file": "opentrace.desktop",
  "command": "OpenTrace",
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--talk-name=org.freedesktop.Flatpak",
   "--device=dri",
   "--share=network"
  ],
  "modules": [
   {
    "name": "opentrace",
    "buildsystem": "simple",
    "build-options": {
     "no-debuginfo": true
    },
    "build-commands": [
     "mkdir /app/opentrace",
     "tar -C /app/opentrace/ -zxf *.tar.gz",
     "mv /app/opentrace/nexttrace /app/opentrace/_nexttrace",
     "install -Dm644 ${FLATPAK_ID}.metainfo.xml -t /app/share/metainfo",
     "install -Dm644 opentrace.png -t /app/share/icons/hicolor/512x512/apps",
     "install -Dm755 opentrace.sh /app/bin/OpenTrace",
     "install -Dm644 opentrace.desktop -t /app/share/applications",
     "install -Dm755 nexttrace.sh -t /app/bin/",
     "cp /app/bin/nexttrace.sh /app/opentrace/nexttrace"
    ],
    "sources": [
     {
      "type": "file",
      "only-arches": [
       "x86_64"
      ],
      "dest-filename": "linux-x64.tar.gz",
      "url": "https://github.com/Archeb/opentrace/releases/download/v1.5.2/linux-x64.tar.gz",
      "sha256": "5c5c6891a8f8c83e38c3caa618589cf7739d2665ade250fc5e0d5394d2b2f672",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/Archeb/opentrace/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": ".assets[] | select(.name==\"linux-x64.tar.gz\") | .browser_download_url"
      }
     },
     {
      "type": "file",
      "only-arches": [
       "aarch64"
      ],
      "dest-filename": "linux-arm64.tar.gz",
      "url": "https://github.com/Archeb/opentrace/releases/download/v1.5.2/linux-arm64.tar.gz",
      "sha256": "475899f87d62d51cca8dd1cdedc106c0be9cea74db8dcaf074d9a5eb038e0102",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/Archeb/opentrace/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": ".assets[] | select(.name==\"linux-arm64.tar.gz\") | .browser_download_url"
      }
     },
     {
      "type": "file",
      "path": "io.github.Archeb.opentrace.metainfo.xml"
     },
     {
      "type": "file",
      "path": "opentrace.png"
     },
     {
      "type": "file",
      "path": "opentrace.desktop"
     },
     {
      "type": "file",
      "path": "nexttrace.sh"
     },
     {
      "type": "script",
      "dest-filename": "opentrace.sh",
      "commands": [
       "exec /app/opentrace/OpenTrace \"$@\""
      ]
     }
    ]
   }
  ]
 }
}