{
 "app_id": "com.one_ware.OneWare",
 "source_url": "https://raw.githubusercontent.com/flathub/com.one_ware.OneWare/master/com.one_ware.OneWare.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=x11",
  "--device=all",
  "--filesystem=home",
  "--talk-name=org.freedesktop.secrets"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:08:28.025843+00:00",
 "manifest": {
  "app-id": "com.one_ware.OneWare",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.dotnet10"
  ],
  "build-options": {
   "prepend-path": "/usr/lib/sdk/dotnet10/bin",
   "append-ld-library-path": "/usr/lib/sdk/dotnet10/lib",
   "prepend-pkg-config-path": "/usr/lib/sdk/dotnet10/lib/pkgconfig",
   "arch": {
    "aarch64": {
     "env": {
      "RUNTIME": "linux-arm64"
     }
    },
    "x86_64": {
     "env": {
      "RUNTIME": "linux-x64"
     }
    }
   }
  },
  "command": "oneware",
  "separate-locales": false,
  "finish-args": [
   "--device=all",
   "--share=ipc",
   "--share=network",
   "--socket=x11",
   "--filesystem=home",
   "--talk-name=org.freedesktop.secrets"
  ],
  "modules": [
   "shared-modules/libsecret/libsecret.json",
   {
    "name": "git",
    "buildsystem": "simple",
    "build-commands": [
     "install -D /usr/bin/git /app/bin/git"
    ],
    "sources": [
     {
      "type": "script",
      "commands": [
       "echo \"Bundling git binary for runtime\""
      ]
     }
    ]
   },
   {
    "name": "v4l-utils",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-static",
     "--disable-doxygen-doc",
     "--disable-libdvbv5",
     "--disable-v4l-utils",
     "--disable-qv4l2",
     "--with-udevdir=/app/lib/udev/"
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig",
     "*.la",
     "*.a"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://linuxtv.org/downloads/v4l-utils/v4l-utils-1.22.0.tar.bz2",
      "sha256": "1069e5d7909bcc563baeaadc3a5c496f0e658524c413cf7818816e37bfcea344"
     }
    ]
   },
   {
    "name": "oneware",
    "buildsystem": "simple",
    "build-commands": [
     "dotnet publish --source nuget-sources -c Release -r $RUNTIME -o ./studio ./source/studio/OneWare.Studio.Desktop/OneWare.Studio.Desktop.csproj",
     "install -D -m755 oneware ${FLATPAK_DEST}/bin/oneware",
     "install -D -m644 studio/${FLATPAK_ID}.mime.xml ${FLATPAK_DEST}/share/mime/packages/${FLATPAK_ID}-mime.xml",
     "install -D -m644 studio/${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -D -m644 studio/Assets/${FLATPAK_ID}.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "install -D -m644 studio/${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "cp -r studio ${FLATPAK_DEST}/bin/studio"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/one-ware/OneWare.git",
      "disable-shallow-clone": true,
      "dest": "source",
      "tag": "1.0.31",
      "commit": "a7c83b069ee3a696e243b085b341e9be620f2bc6"
     },
     {
      "type": "script",
      "dest-filename": "oneware",
      "commands": [
       "exec /app/bin/studio/OneWareStudio \"$@\""
      ]
     },
     "oneware-nuget-sources.json"
    ]
   }
  ]
 }
}