{
 "app_id": "com.daniel15.wcc",
 "source_url": "https://raw.githubusercontent.com/flathub/com.daniel15.wcc/master/com.daniel15.wcc.yaml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=all"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:07:07.898806+00:00",
 "manifest": {
  "id": "com.daniel15.wcc",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.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": "webcamcontrol",
  "finish-args": [
   "--device=all",
   "--env=DOTNET_ROOT=/app/lib/dotnet",
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11"
  ],
  "modules": [
   {
    "name": "WebCamControl",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Daniel15/WebCamControl.git",
      "tag": "v1.3.2",
      "commit": "367d0197f10f38e0a6ca607dce22d410d4e231dd"
     },
     "./nuget-sources.json"
    ],
    "build-commands": [
     "dotnet msbuild src/WebCamControl.Gtk/WebCamControl.Gtk.csproj /t:BlueprintBuild",
     "dotnet publish src/WebCamControl.Gtk/WebCamControl.Gtk.csproj -c Release --runtime $RUNTIME --source ./nuget-sources --source /usr/lib/sdk/dotnet10/nuget/packages --self-contained true",
     "mkdir -p ${FLATPAK_DEST}/bin",
     "cp -r --remove-destination src/WebCamControl.Gtk/bin/Release/net10.0/$RUNTIME/publish/* ${FLATPAK_DEST}/bin",
     "install -D src/WebCamControl.Gtk/icon-512x512.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/com.daniel15.wcc.png",
     "install -D src/WebCamControl.Gtk/com.daniel15.wcc.desktop ${FLATPAK_DEST}/share/applications/com.daniel15.wcc.desktop",
     "install -D src/WebCamControl.Gtk/com.daniel15.wcc.metainfo.xml ${FLATPAK_DEST}/share/metainfo/com.daniel15.wcc.metainfo.xml"
    ]
   }
  ]
 }
}