{
 "app_id": "io.github.jalau_capstones.arcade-maze-chomper",
 "source_url": "https://raw.githubusercontent.com/JalaU-Capstones/arcade-maze-chomper/main/flathub/io.github.jalau_capstones.arcade-maze-chomper.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--socket=x11",
  "--share=ipc",
  "--device=dri",
  "--socket=pulseaudio",
  "--share=network"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-20T13:05:07.407851+00:00",
 "manifest": {
  "app-id": "io.github.jalau_capstones.arcade-maze-chomper",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.dotnet9"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/dotnet9/bin",
   "env": {
    "DOTNET_ROOT": "/usr/lib/sdk/dotnet9",
    "DOTNET_CLI_TELEMETRY_OPTOUT": "1"
   }
  },
  "command": "arcade-maze-chomper",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--device=dri",
   "--socket=pulseaudio",
   "--share=network"
  ],
  "modules": [
   {
    "name": "flac",
    "buildsystem": "autotools",
    "config-opts": [
     "--prefix=/app",
     "--disable-static",
     "--enable-shared",
     "--disable-ogg",
     "--disable-cpplibs",
     "--disable-xmms-plugin"
    ],
    "cleanup": [
     "/bin",
     "/share/doc",
     "/share/info",
     "/share/man"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.xiph.org/releases/flac/flac-1.3.4.tar.xz",
      "sha256": "8ff0607e75a322dd7cd6ec48f4f225471404ae2730d0ea945127b1355155e737"
     }
    ]
   },
   {
    "name": "arcade-maze-chomper",
    "buildsystem": "simple",
    "build-commands": [
     "if [ \"$FLATPAK_ARCH\" = \"aarch64\" ]; then\n  RID=\"linux-arm64\"\nelse\n  RID=\"linux-x64\"\nfi\n\ndotnet publish src/MazeChomperGame/MazeChomperGame.csproj \\\n  -c Release \\\n  -r $RID \\\n  --self-contained true \\\n  --source ./nuget-sources \\\n  -o /app/lib/arcade-maze-chomper \\\n  /p:PublishSingleFile=false \\\n  /p:DebugType=None \\\n  /p:DebugSymbols=false \\\n  /p:RuntimeFrameworkVersion=9.0.13 \\\n  /p:AspNetCoreRuntimeFrameworkVersion=9.0.13 \\\n  /p:TargetLatestRuntimePatch=true\n",
     "publish_dir=\"/app/lib/arcade-maze-chomper\"\n\nmkdir -p /app/lib\n\nif [ -d \"$publish_dir/runtimes\" ]; then\n  # Copy NuGet native assets into /app/lib, but keep runtimes/* for any managed RID-specific assemblies.\n  find \"$publish_dir/runtimes\" -path '*/native/*' \\( -type f -o -type l \\) -name '*.so*' -exec cp -a '{}' /app/lib/ ';'\n  # Remove only native asset folders after extraction to avoid duplicate/unused paths.\n  find \"$publish_dir/runtimes\" -type d -name native -exec rm -rf '{}' ';' || true\nfi\n\n# Some builds may place CSFML/SFML libs at the publish root; move them into /app/lib as well.\nfor so in \"$publish_dir\"/libcsfml-*.so* \"$publish_dir\"/libsfml-*.so*; do\n  if [ -e \"$so\" ]; then\n    mv -f \"$so\" /app/lib/\n  fi\ndone\n\ncd /app/lib\ncsfml_audio_target=\"$(ls -1 libcsfml-audio.so* 2>/dev/null | sort -V | head -n 1)\"\ncsfml_system_target=\"$(ls -1 libcsfml-system.so* 2>/dev/null | sort -V | head -n 1)\"\nif [ -z \"$csfml_audio_target\" ] || [ -z \"$csfml_system_target\" ]; then\n  echo \"ERROR: CSFML native libraries were not found in /app/lib after install.\"\n  exit 1\nfi\ncsfml_audio_path=\"/app/lib/$csfml_audio_target\"\ncsfml_system_path=\"/app/lib/$csfml_system_target\"\n\n# Loader-visible names in /app/lib (for non-.NET consumers, and consistency with previous behavior).\nln -sf \"$csfml_audio_target\" csfml-audio\nln -sf \"$csfml_system_target\" csfml-system\n\n# .NET's DllImport probing checks the application base directory first. Create local symlinks there\n# (without using LD_LIBRARY_PATH) while still keeping the actual binaries in /app/lib per Flathub guidance.\ncd \"$publish_dir\"\nln -sf \"$csfml_audio_path\" csfml-audio\nln -sf \"$csfml_system_path\" csfml-system\nln -sf \"$csfml_audio_path\" csfml-audio.so\nln -sf \"$csfml_system_path\" csfml-system.so\nln -sf \"$csfml_audio_path\" libcsfml-audio.so\nln -sf \"$csfml_system_path\" libcsfml-system.so\nln -sf /app/lib/libFLAC.so.8 libFLAC.so.8\n",
     "mkdir -p /app/share/arcade-maze-chomper",
     "cp -r /app/lib/arcade-maze-chomper/Assets /app/share/arcade-maze-chomper/",
     "install -Dm755 arcade-maze-chomper.sh /app/bin/arcade-maze-chomper",
     "install -Dm644 packaging/flatpak/io.github.jalau_capstones.arcade-maze-chomper.desktop /app/share/applications/io.github.jalau_capstones.arcade-maze-chomper.desktop",
     "install -Dm644 packaging/flatpak/io.github.jalau_capstones.arcade-maze-chomper.metainfo.xml /app/share/metainfo/io.github.jalau_capstones.arcade-maze-chomper.metainfo.xml",
     "install -Dm644 packaging/flatpak/icons/hicolor/64x64/apps/io.github.jalau_capstones.arcade-maze-chomper.png /app/share/icons/hicolor/64x64/apps/io.github.jalau_capstones.arcade-maze-chomper.png",
     "install -Dm644 packaging/flatpak/icons/hicolor/128x128/apps/io.github.jalau_capstones.arcade-maze-chomper.png /app/share/icons/hicolor/128x128/apps/io.github.jalau_capstones.arcade-maze-chomper.png",
     "install -Dm644 packaging/flatpak/icons/hicolor/256x256/apps/io.github.jalau_capstones.arcade-maze-chomper.png /app/share/icons/hicolor/256x256/apps/io.github.jalau_capstones.arcade-maze-chomper.png",
     "install -Dm644 packaging/flatpak/icons/hicolor/512x512/apps/io.github.jalau_capstones.arcade-maze-chomper.png /app/share/icons/hicolor/512x512/apps/io.github.jalau_capstones.arcade-maze-chomper.png"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/JalaU-Capstones/arcade-maze-chomper.git",
      "tag": "v1.1.1",
      "commit": "a749d3c8d9ea96f667e3ce24b2c2824346317561"
     },
     "generated-sources.json",
     {
      "type": "script",
      "dest-filename": "arcade-maze-chomper.sh",
      "commands": [
       "export ASSETS_PATH=/app/share/arcade-maze-chomper/Assets",
       "exec /app/lib/arcade-maze-chomper/MazeChomperGame"
      ]
     }
    ]
   }
  ]
 }
}