{
 "app_id": "io.github.mki1967.mki3dgame",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.mki1967.mki3dgame/master/io.github.mki1967.mki3dgame.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--device=all"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:11:41.197767+00:00",
 "manifest": {
  "app-id": "io.github.mki1967.mki3dgame",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.golang"
  ],
  "command": "mki3dgame",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--share=network",
   "--device=all",
   "--socket=wayland"
  ],
  "cleanup": [
   "/go",
   "/bin/scripts"
  ],
  "modules": [
   {
    "name": "scripts",
    "sources": [
     {
      "type": "script",
      "commands": [
       ". /usr/lib/sdk/golang/enable.sh;  export GOPATH=/app/go"
      ],
      "dest-filename": "my_enable.sh"
     },
     {
      "type": "script",
      "commands": [
       ". /app/bin/scripts/my_enable.sh; cd /app/go/src/$1; GO111MODULE=off go build"
      ],
      "dest-filename": "build.sh"
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/go/{src,pkg,bin} # make go workspace",
     "install -d /app/bin/scripts",
     "cp *.sh /app/bin/scripts/"
    ]
   },
   {
    "name": "mki3dgame",
    "buildsystem": "simple",
    "build-commands": [
     "cp -rpv go/* /app/go/",
     "/app/bin/scripts/build.sh github.com/mki1967/mki3dgame",
     "mv /app/go/src/github.com/mki1967/mki3dgame/mki3dgame /app/go/src/github.com/mki1967/mki3dgame/usr/games/mki3dgame.bin",
     "rm /app/go/src/github.com/mki1967/mki3dgame/usr/share/games/mki3dgame/assets # remove a symbolic link",
     "mv /app/go/src/github.com/mki1967/mki3dgame/assets /app/go/src/github.com/mki1967/mki3dgame/usr/share/games/mki3dgame/",
     "mv /app/go/src/github.com/mki1967/mki3dgame/usr/share /app/",
     "mv /app/go/src/github.com/mki1967/mki3dgame/usr/bin/* /app/bin/",
     "cd /app; ln -s bin games",
     "rm  /app/share/icons/hicolor/64x64/apps/io.github.mki1967.mki3dgame.png",
     "rm  /app/share/icons/hicolor/128x128/apps/io.github.mki1967.mki3dgame.png",
     "cp /app/share/games/mki3dgame/assets/icons/mkisg_icon_64x64.png  /app/share/icons/hicolor/64x64/apps/io.github.mki1967.mki3dgame.png",
     "cp /app/share/games/mki3dgame/assets/icons/mkisg_icon_128x128.png  /app/share/icons/hicolor/128x128/apps/io.github.mki1967.mki3dgame.png"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/mki1967/mki3dgame",
      "commit": "bbfcdbe811b581aefea4bf4fc16323305cc4bfea",
      "dest": "go/src/github.com/mki1967/mki3dgame"
     },
     {
      "type": "git",
      "url": "https://github.com/go-gl/gl",
      "commit": "bf2b1f2f34d7f6a60a99a830f65dcd6afb0c6587",
      "dest": "go/src/github.com/go-gl/gl"
     },
     {
      "type": "git",
      "url": "https://github.com/go-gl/glfw",
      "commit": "06ea97f0c265e8f81bc3b76ab51a5e4d66e87c23",
      "dest": "go/src/github.com/go-gl/glfw"
     },
     {
      "type": "git",
      "url": "https://github.com/go-gl/mathgl",
      "commit": "592312d8590acb0686c14740dcf60e2f32d9c618",
      "dest": "go/src/github.com/go-gl/mathgl"
     },
     {
      "type": "git",
      "url": "https://github.com/mki1967/go-mki3d",
      "commit": "cc9bc88f25b208ba17f4b89bafddd7daa2e3e7bb",
      "dest": "go/src/github.com/mki1967/go-mki3d"
     },
     {
      "type": "git",
      "url": "https://github.com/mki1967/go-skybox",
      "commit": "cf0150fa725a42f9e77527b5de91e18e5ef07606",
      "dest": "go/src/github.com/mki1967/go-skybox"
     },
     {
      "type": "git",
      "url": "https://github.com/golang/image",
      "commit": "35266b937fa69456d24ed72a04d75eb6857f7d52",
      "dest": "go/src/golang.org/x/image"
     }
    ]
   }
  ]
 }
}