{
 "app_id": "com.mastermindzh.tidal-hifi",
 "source_url": "https://raw.githubusercontent.com/flathub/com.mastermindzh.tidal-hifi/master/com.mastermindzh.tidal-hifi.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--socket=x11",
  "--device=dri",
  "--filesystem=xdg-run/app/com.discordapp.Discord:create",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.gnome.SettingsDaemon.MediaKeys",
  "--talk-name=org.gnome.SessionManager",
  "--own-name=org.mpris.MediaPlayer2.tidal-hifi"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:08:17.060338+00:00",
 "manifest": {
  "app-id": "com.mastermindzh.tidal-hifi",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "separate-locales": false,
  "command": "com.mastermindzh.tidal-hifi",
  "rename-desktop-file": "tidal-hifi.desktop",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--share=network",
   "--device=dri",
   "--filesystem=xdg-run/app/com.discordapp.Discord:create",
   "--own-name=org.mpris.MediaPlayer2.tidal-hifi",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=org.gnome.SettingsDaemon.MediaKeys",
   "--talk-name=org.gnome.SessionManager",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
  ],
  "modules": [
   {
    "name": "tidal-hifi",
    "buildsystem": "simple",
    "build-commands": [
     "chmod +x tidal-hifi-8.1.1.AppImage",
     "./tidal-hifi-8.1.1.AppImage --appimage-extract",
     "install -dm755 \"${FLATPAK_DEST}/bin\" \"${FLATPAK_DEST}/lib/tidal-hifi\"",
     "cp -r squashfs-root/* \"${FLATPAK_DEST}/lib/tidal-hifi\"",
     "cp -r squashfs-root/usr/lib/* \"${FLATPAK_DEST}/lib\"",
     "install -Dm644 \"com.mastermindzh.tidal-hifi.png\" \"${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/com.mastermindzh.tidal-hifi.png\"",
     "install -Dm644 \"com.mastermindzh.tidal-hifi-symbolic.svg\" \"${FLATPAK_DEST}/share/icons/hicolor/symbolic/apps/com.mastermindzh.tidal-hifi-symbolic.svg\"",
     "install -Dm755 \"run.sh\" \"${FLATPAK_DEST}/bin/com.mastermindzh.tidal-hifi\"",
     "desktop-file-install --dir=\"${FLATPAK_DEST}/share/applications\" --remove-key=X-AppImage-Version --set-key=Exec --set-value=com.mastermindzh.tidal-hifi --set-key=Icon --set-value=com.mastermindzh.tidal-hifi squashfs-root/tidal-hifi.desktop",
     "install -Dm644 -t ${FLATPAK_DEST}/share/metainfo com.mastermindzh.tidal-hifi.metainfo.xml",
     "patch-electron-desktop-filename ${FLATPAK_DEST}/lib/tidal-hifi/resources/app.asar"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/Mastermindzh/tidal-hifi/releases/download/8.1.1/tidal-hifi-8.1.1.AppImage",
      "sha256": "da85324fb676cd9ad75ca9c0ca382063237e8d723328c9e74720efbcfa2c7f21"
     },
     {
      "type": "file",
      "path": "com.mastermindzh.tidal-hifi.metainfo.xml"
     },
     {
      "type": "file",
      "path": "com.mastermindzh.tidal-hifi.png"
     },
     {
      "type": "file",
      "path": "com.mastermindzh.tidal-hifi-symbolic.svg"
     },
     {
      "type": "file",
      "path": "run.sh"
     }
    ]
   }
  ]
 }
}