{
 "app_id": "io.github.dweymouth.supersonic",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.dweymouth.supersonic/master/io.github.dweymouth.supersonic.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=dri",
  "--filesystem=xdg-run/pipewire-0:ro",
  "--filesystem=xdg-run/keyring",
  "--filesystem=~/.config/pipewire:ro",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=org.gnome.keyring.SystemPrompter",
  "--talk-name=org.freedesktop.secrets",
  "--talk-name=org.mpris.MediaPlayer2.Player",
  "--own-name=org.mpris.MediaPlayer2.Supersonic"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:10:54.665219+00:00",
 "manifest": {
  "app-id": "io.github.dweymouth.supersonic",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.golang"
  ],
  "command": "supersonic",
  "rename-desktop-file": "Supersonic.desktop",
  "rename-icon": "Supersonic",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--device=dri",
   "--socket=pulseaudio",
   "--filesystem=xdg-run/pipewire-0:ro",
   "--filesystem=~/.config/pipewire:ro",
   "--filesystem=xdg-run/keyring",
   "--talk-name=org.freedesktop.secrets",
   "--talk-name=org.gnome.keyring.SystemPrompter",
   "--share=network",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=org.mpris.MediaPlayer2.Player",
   "--own-name=org.mpris.MediaPlayer2.Supersonic"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/doc",
   "*.la",
   "*.a"
  ],
  "modules": [
   "mpv.yml",
   {
    "name": "finecmd",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/golang/bin",
     "env": {
      "GOBIN": "/app/bin"
     }
    },
    "build-commands": [
     ". /usr/lib/sdk/golang/enable.sh && go install -v ./cmd/fyne"
    ],
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/fyne-io/fyne/archive/refs/tags/v2.3.3.tar.gz",
      "sha256": "239ed91d11c986f3be292b73fcfe7e3ffb7a5059dca64e6e928f054e12436b6c"
     }
    ]
   },
   {
    "name": "supersonic",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/golang/bin",
     "env": {
      "GOBIN": "/app/bin",
      "GO11MODULE": false
     }
    },
    "build-commands": [
     ". /usr/lib/sdk/golang/enable.sh && CGO_LDFLAGS=-L/app/lib go build -v -tags migrated_fynedo .",
     ". /usr/lib/sdk/golang/enable.sh && CGO_LDFLAGS=-L/app/lib /app/bin/fyne package -os linux -name Supersonic -icon ./res/appicon-512.png -tags migrated_fynedo",
     "tar -C /app --strip-components=1 -x -v -f /run/build/supersonic/Supersonic.tar.xz",
     "mkdir -p /app/share/icons/hicolor/512x512/apps/",
     "mv /app/share/pixmaps/Supersonic.png /app/share/icons/hicolor/512x512/apps/",
     "desktop-file-edit --set-icon=$FLATPAK_ID --set-key=Exec --set-value=supersonic /app/share/applications/Supersonic.desktop",
     "mkdir -p /app/share/appdata",
     "mv $FLATPAK_ID.appdata.xml /app/share/appdata/$FLATPAK_ID.appdata.xml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/dweymouth/supersonic/",
      "commit": "b7b43ed7dd98abfc0c6faa32cc66965381a58e9f",
      "tag": "v0.22.1",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v?(\\d[\\-+\\.:\\~\\da-zA-Z]*)$",
       "version-scheme": "semantic"
      }
     },
     {
      "type": "file",
      "path": "io.github.dweymouth.supersonic.appdata.xml"
     },
     {
      "type": "file",
      "path": "modules.txt",
      "dest": "vendor"
     },
     "go.mod.yml"
    ]
   }
  ]
 }
}