{
 "app_id": "mobi.snowball.Snowball",
 "source_url": "https://raw.githubusercontent.com/flathub/mobi.snowball.Snowball/master/mobi.snowball.Snowball.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:13:16.702156+00:00",
 "manifest": {
  "app-id": "mobi.snowball.Snowball",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "snowball",
  "rename-icon": "snowball",
  "rename-desktop-file": "snowball.desktop",
  "rename-appdata-file": "snowball.appdata.xml",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--device=dri"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig"
  ],
  "modules": [
   {
    "name": "glfw",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_SHARED_LIBS=ON",
     "-DGLFW_BUILD_EXAMPLES=OFF",
     "-DGLFW_BUILD_TESTS=OFF",
     "-DGLFW_BUILD_DOCS=OFF",
     "-DGLFW_USE_WAYLAND=1"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/glfw/glfw.git",
      "commit": "3eaf1255b29fdf5c2895856c7be7d7185ef2b241"
     }
    ]
   },
   {
    "name": "snowball",
    "buildsystem": "simple",
    "build-commands": [
     "cc SNOWBALL/main.c SNOWBALL/glad_gl.c -Ofast -L/app/lib -lglfw -lm -o snowball",
     "install -Dm 0755 snowball -t ${FLATPAK_DEST}/bin",
     "install -Dm 0644 SNOWBALL/flatpak/snowball.desktop ${FLATPAK_DEST}/share/applications/snowball.desktop",
     "install -Dm 0644 SNOWBALL/flatpak/snowball.appdata.xml ${FLATPAK_DEST}/share/metainfo/snowball.appdata.xml",
     "install -Dm 0644 SNOWBALL/flatpak/snowball.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/snowball.png"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/mrbid/NotABug-Mirror.git",
      "commit": "9783867161be015ec0f46c9ec19c758716d566f0"
     },
     {
      "type": "patch",
      "path": "fix-appdata.patch"
     }
    ]
   }
  ]
 }
}