{
 "app_id": "moe.launcher.an-anime-game-launcher",
 "source_url": "https://raw.githubusercontent.com/flathub/moe.launcher.an-anime-game-launcher/master/moe.launcher.an-anime-game-launcher.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all",
  "--filesystem=/media",
  "--filesystem=/mnt",
  "--filesystem=/run/media",
  "--allow=devel"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-19T12:55:06.597706+00:00",
 "manifest": {
  "app-id": "moe.launcher.an-anime-game-launcher",
  "command": "moe.launcher.an-anime-game-launcher",
  "rename-desktop-file": "anime-game-launcher.desktop",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "finish-args": [
   "--share=network",
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--filesystem=/mnt",
   "--filesystem=/media",
   "--filesystem=/run/media",
   "--device=all",
   "--allow=devel"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin"
  },
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/man",
   "/share/bash-completion",
   "/share/doc",
   "*.la",
   "*.a"
  ],
  "modules": [
   {
    "name": "gamemode",
    "buildsystem": "meson",
    "config-opts": [
     "-Dwith-examples=false",
     "-Dwith-util=false",
     "-Dwith-sd-bus-provider=no-daemon"
    ],
    "post-install": [
     "install -Dm775 ../data/gamemoderun -t /app/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/FeralInteractive/gamemode/releases/download/1.8.2/gamemode-1.8.2.tar.xz",
      "sha256": "98cd1bcf6101c92fe87f974c7776af23c7e18f29ce6ecfe572b1c39dcde5c181",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 17410,
       "url-template": "https://github.com/FeralInteractive/gamemode/releases/download/$version/gamemode-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "git",
    "buildsystem": "autotools",
    "config-opts": [
     "--without-tcltk"
    ],
    "post-install": [
     "rm -rf /app/share/gitweb",
     "cd /app/libexec/git-core\nkeep=\"git git-rev-parse git-remote git-remote-https git-fetch git-reset git-clone\"\nfor f in *; do [[ \" $keep \" =~ \" $f \" ]] || rm -f \"$f\"; done\n"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.55.0.tar.xz",
      "sha256": "457fdb04dc8728e007d4688695e6912e6f680727920f2a40bf11eacc17505357",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 5350,
       "url-template": "https://mirrors.edge.kernel.org/pub/software/scm/git/git-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "p7zip",
    "buildsystem": "simple",
    "build-commands": [
     "make 7z install DEST_HOME=/app"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/p7zip-project/p7zip",
      "tag": "v17.05"
     }
    ]
   },
   {
    "name": "protobuf",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=None",
     "-DBUILD_SHARED_LIBS=ON",
     "-Dprotobuf_BUILD_TESTS=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/protocolbuffers/protobuf.git",
      "commit": "35cd01f9fe9afbeea38cc7b979a3b6bfcde82c03",
      "tag": "v35.1",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/protocolbuffers/protobuf/releases/latest",
       "tag-query": ".tag_name",
       "timestamp-query": ".published_at",
       "version-query": "$tag | sub(\"^[vV]\"; \"\")"
      }
     }
    ],
    "cleanup": [
     "/bin"
    ]
   },
   {
    "name": "aagl",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "CARGO_HOME": "./cargo"
     }
    },
    "build-commands": [
     "cargo --offline fetch --manifest-path Cargo.toml --verbose",
     "cargo --offline build --release --verbose",
     "install -Dm775 target/release/anime-game-launcher /app/bin/anime-game-launcher",
     "install -Dm755 moe.launcher.an-anime-game-launcher.sh /app/bin/moe.launcher.an-anime-game-launcher",
     "install -Dm644 assets/images/icon.png /app/share/icons/hicolor/512x512/apps/moe.launcher.an-anime-game-launcher.png",
     "desktop-file-install --dir=/app/share/applications --set-key=Exec --set-value=moe.launcher.an-anime-game-launcher --set-key=Icon --set-value=moe.launcher.an-anime-game-launcher assets/anime-game-launcher.desktop",
     "install -Dm644 assets/moe.launcher.an-anime-game-launcher.metainfo.xml /app/share/metainfo/moe.launcher.an-anime-game-launcher.metainfo.xml",
     "mkdir -p /app/utils/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/an-anime-team/an-anime-game-launcher",
      "tag": "3.19.8"
     },
     {
      "type": "file",
      "path": "moe.launcher.an-anime-game-launcher.sh"
     },
     "cargo-sources.json"
    ]
   }
  ]
 }
}