{
 "app_id": "com.gitlab.npm-flatpak-demo",
 "source_url": "https://gitlab.com/olof-nord/npm-flatpak-demo/-/raw/main/com.gitlab.npm-flatpak-demo.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "21.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [],
 "module_count": 3,
 "fetched_at": "2026-09-18T08:31:29.921133+00:00",
 "manifest": {
  "app-id": "com.gitlab.npm-flatpak-demo",
  "branch": "main",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "21.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node16"
  ],
  "separate-locales": false,
  "command": "run.sh",
  "modules": [
   {
    "name": "node",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/node16/install.sh"
    ]
   },
   {
    "name": "npm-flatpak-demo",
    "buildsystem": "simple",
    "subdir": "src/gitlab.com/olof-nord/npm-flatpak-demo",
    "build-options": {
     "append-path": "/usr/lib/sdk/node16/bin",
     "env": {
      "npm_config_nodedir": "/usr/lib/sdk/node16",
      "npm_config_offline": "true",
      "npm_config_cache": "/run/build/npm-flatpak-demo/flatpak-node/npm-cache"
     }
    },
    "build-commands": [
     "npm ci",
     "install -Dm 644 index.js /app/bin/npm-flatpak-demo/index.js",
     "cp -r node_modules /app/bin/npm-flatpak-demo/node_modules"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.com/olof-nord/npm-flatpak-demo",
      "tag": "main",
      "dest": "src/gitlab.com/olof-nord/npm-flatpak-demo"
     },
     "generated-sources.json"
    ]
   },
   {
    "name": "metadata",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm 755 run.sh /app/bin/run.sh"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "export TMPDIR=\"$XDG_RUNTIME_DIR/app/$FLATPAK_ID\"",
       "exec /app/node/bin/node /app/bin/npm-flatpak-demo/index.js \"$@\""
      ]
     }
    ]
   }
  ]
 }
}