{
 "app_id": "io.kochie.touch-typer",
 "source_url": "https://raw.githubusercontent.com/kochie/touch-type/main/flathub/io.kochie.touch-typer.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--share=network",
  "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-20T12:56:20.474204+00:00",
 "manifest": {
  "app-id": "io.kochie.touch-typer",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node24"
  ],
  "command": "run.sh",
  "separate-locales": false,
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--share=network",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node24/bin",
   "env": {
    "NPM_CONFIG_LOGLEVEL": "info"
   }
  },
  "modules": [
   {
    "name": "touch-typer",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "/run/build/touch-typer/flatpak-node/cache",
      "npm_config_cache": "/run/build/touch-typer/flatpak-node/npm-cache",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "pnpm install --frozen-lockfile --offline",
     ". ../flatpak-node/electron-builder-arch-args.sh\npnpm run build\npnpm exec electron-builder $ELECTRON_BUILDER_ARCH_ARGS --config electron-builder.ts -l --dir\n",
     "cp -a dist/linux*unpacked /app/main",
     "install -Dm755 -t /app/bin/ ../run.sh",
     "install -Dm644 flathub/io.kochie.touch-typer.metainfo.xml /app/share/metainfo/io.kochie.touch-typer.metainfo.xml",
     "install -Dm644 flathub/io.kochie.touch-typer.desktop /app/share/applications/io.kochie.touch-typer.desktop",
     "install -Dm644 build/app-logo-linux.png /app/share/icons/hicolor/256x256/apps/io.kochie.touch-typer.png"
    ],
    "subdir": "main",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/kochie/touch-type/archive/refs/tags/v3.0.16.tar.gz",
      "sha256": "7def7d649fa6679746174d878b9c3f494b41e0d16e90ec0fb63fb61ddc78eb55",
      "dest": "main"
     },
     {
      "path": "generated-sources.json"
     },
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "zypak-wrapper.sh /app/main/touch-typer \"$@\""
      ]
     }
    ]
   }
  ]
 }
}