{
 "app_id": "ar.com.tuxguitar.TuxGuitar",
 "source_url": "https://raw.githubusercontent.com/flathub/ar.com.tuxguitar.TuxGuitar/master/ar.com.tuxguitar.TuxGuitar.yml",
 "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=dri",
  "--filesystem=home",
  "--filesystem=xdg-run/pipewire-0"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:06:32.304225+00:00",
 "manifest": {
  "app-id": "ar.com.tuxguitar.TuxGuitar",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk17"
  ],
  "command": "tuxguitar",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--share=network",
   "--filesystem=home",
   "--device=dri",
   "--filesystem=xdg-run/pipewire-0",
   "--metadata=X-DConf=migrate-path=/ar/com/tuxguitar/TuxGuitar/",
   "--env=PATH=/usr/bin:/app/bin:/app/jre/bin",
   "--env=JAVA_HOME=/app/jre",
   "--env=JAVA=/app/jre/bin/java"
  ],
  "cleanup": [
   "/share/man"
  ],
  "add-extensions": {
   "org.freedesktop.LinuxAudio.Plugins": {
    "directory": "extensions/Plugins",
    "version": "25.08",
    "add-ld-path": "lib",
    "merge-dirs": "lv2",
    "subdirectories": true,
    "no-autodownload": true
   }
  },
  "modules": [
   {
    "name": "openjdk",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/openjdk17/install.sh"
    ]
   },
   "shared-modules/linux-audio/lilv.json",
   "shared-modules/linux-audio/fluidsynth2.json",
   {
    "name": "tuxguitar",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p \"${FLATPAK_DEST}/bin\"",
     "tar -xf tuxguitar-*-linux-swt-amd64.tar.gz --strip 1 --exclude=tuxguitar.sh -C \"${FLATPAK_DEST}/\"",
     "install -Dm0644 \"${FLATPAK_ID}.png\" -t \"${FLATPAK_DEST}/share/icons/hicolor/256x256/apps\"",
     "install -Dm0644 \"${FLATPAK_ID}.metainfo.xml\" -t \"${FLATPAK_DEST}/share/metainfo/\"",
     "install -Dm0644 \"${FLATPAK_DEST}/share/skins/Oxygen/icon.png\" \"${FLATPAK_DEST}/share/icons/hicolor/96x96/apps/${FLATPAK_ID}.png\"",
     "install -D tuxguitar.sh \"${FLATPAK_DEST}/bin/tuxguitar\"",
     "install -Dm0644 \"${FLATPAK_DEST}/share/applications/tuxguitar.desktop\" \"${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop\"",
     "desktop-file-edit --set-key=Exec --set-value='tuxguitar %F' \"${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop\"",
     "desktop-file-edit --set-icon=\"${FLATPAK_ID}\" \"${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop\"",
     "install -d \"${FLATPAK_DEST}/extensions/Plugins\""
    ],
    "sources": [
     {
      "type": "file",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/helge17/tuxguitar/releases/download/2.0.1/tuxguitar-2.0.1-linux-swt-amd64.tar.gz",
      "sha256": "a6c5adfe0cc573925e15e77fdb1ccda4c01a82661e6c038e29279d001b7f6ea3",
      "x-data-checker": {
       "type": "json",
       "url": "https://api.github.com/repos/helge17/tuxguitar/releases/latest",
       "url-query": ".assets[] | select(.name==\"tuxguitar-\" + $version + \"-linux-swt-amd64.tar.gz\") | .browser_download_url"
      }
     },
     {
      "type": "file",
      "path": "tuxguitar.sh"
     },
     {
      "type": "file",
      "path": "ar.com.tuxguitar.TuxGuitar.png"
     },
     {
      "type": "file",
      "path": "ar.com.tuxguitar.TuxGuitar.metainfo.xml"
     }
    ]
   }
  ]
 }
}