{
 "app_id": "io.m51.Gelly",
 "source_url": "https://raw.githubusercontent.com/flathub/io.m51.Gelly/master/io.m51.Gelly.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:12:50.688029+00:00",
 "manifest": {
  "id": "io.m51.Gelly",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "gelly",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--device=dri",
   "--share=network",
   "--socket=pulseaudio"
  ],
  "modules": [
   {
    "name": "gelly",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/rust-stable/bin",
     "env": {
      "CARGO_HOME": "/run/build/gelly/cargo",
      "CARGO_NET_OFFLINE": "true",
      "LOCALEDIR": "/app/share/locale"
     }
    },
    "build-commands": [
     "cargo --offline fetch --manifest-path Cargo.toml --verbose",
     "cargo build --offline --release --all-features",
     "for po_file in po/*.po; do lang=$(basename \"$po_file\" .po); install -dm755 ${FLATPAK_DEST}/share/locale/$lang/LC_MESSAGES; msgfmt -o ${FLATPAK_DEST}/share/locale/$lang/LC_MESSAGES/gelly.mo $po_file; done",
     "install -Dm0755 target/release/gelly ${FLATPAK_DEST}/bin/gelly",
     "install -Dm644 resources/${FLATPAK_ID}.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "install -Dm644 resources/${FLATPAK_ID}-symbolic.svg ${FLATPAK_DEST}/share/icons/hicolor/symbolic/apps/${FLATPAK_ID}-symbolic.svg",
     "install -Dm644 resources/${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 resources/${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm644 resources/${FLATPAK_ID}.gschema.xml ${FLATPAK_DEST}/share/glib-2.0/schemas/${FLATPAK_ID}.gschema.xml",
     "glib-compile-schemas ${FLATPAK_DEST}/share/glib-2.0/schemas/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Fingel/gelly.git",
      "tag": "v1.13.0",
      "commit": "43c451e5c7ae7c7a97fbd373563dfa1f194ed4e5"
     },
     "cargo-sources.json"
    ]
   }
  ]
 }
}