{
 "app_id": "io.github.piotrek_k._2dTaskBoard",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.piotrek_k._2dTaskBoard/master/io.github.piotrek_k._2dTaskBoard.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--device=dri"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:11:56.654468+00:00",
 "manifest": {
  "app-id": "io.github.piotrek_k._2dTaskBoard",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "24.08",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node20"
  ],
  "command": "run.sh",
  "separate-locales": false,
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--device=dri"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node20/bin",
   "env": {
    "NPM_CONFIG_LOGLEVEL": "info"
   }
  },
  "modules": [
   {
    "name": "2dTaskBoard",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "/run/build/2dTaskBoard/flatpak-node/cache",
      "npm_config_cache": "/run/build/2dTaskBoard/flatpak-node/npm-cache",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "cd desktop\nnpm install --offline\n",
     "cd web\nnpm install --offline\nnpm run build\nmkdir -p ../desktop/dist/2dTaskBoard/\ncp -r dist/* ../desktop/dist/2dTaskBoard/\n",
     ". ../flatpak-node/electron-builder-arch-args.sh\ncd desktop\nnpm run dist -- $ELECTRON_BUILDER_ARCH_ARGS  --linux --dir\n",
     "cd desktop\ncp -a release-builds/linux*unpacked /app/main\n",
     "install -Dm755 -t /app/bin/ ../run.sh",
     "cd desktop/flathub\ninstall -Dm644 io.github.piotrek_k._2dTaskBoard.desktop -t /app/share/applications\ninstall -Dm644 io.github.piotrek_k._2dTaskBoard.metainfo.xml -t /app/share/metainfo\ninstall -Dm644 io.github.piotrek_k._2dTaskBoard.svg -t /app/share/icons/hicolor/scalable/apps\n"
    ],
    "subdir": "main",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/piotrek-k/2dTaskBoard.git",
      "tag": "v0.4.4",
      "commit": "6442a2211f5a81ce3df82a5a8fbf761e4999ba5e",
      "dest": "main"
     },
     "generated-sources-desktop.json",
     "generated-sources-web.json",
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "zypak-wrapper.sh /app/main/task-board-desktop \"$@\""
      ]
     }
    ]
   }
  ]
 }
}