{
 "app_id": "org.flathub.electron-sample-app",
 "source_url": "https://raw.githubusercontent.com/flathub/org.flathub.electron-sample-app/master/org.flathub.electron-sample-app.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:14:31.411414+00:00",
 "manifest": {
  "app-id": "org.flathub.electron-sample-app",
  "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": "electron-sample-app",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "/run/build/electron-sample-app/flatpak-node/cache",
      "npm_config_cache": "/run/build/electron-sample-app/flatpak-node/npm-cache",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "npm install --offline",
     ". ../flatpak-node/electron-builder-arch-args.sh\nnpm run dist -- $ELECTRON_BUILDER_ARCH_ARGS  --linux --dir\n",
     "cp -a dist/linux*unpacked /app/main",
     "install -Dm755 -t /app/bin/ ../run.sh",
     "install -Dm644 org.flathub.electron-sample-app.metainfo.xml /app/share/metainfo/org.flathub.electron-sample-app.metainfo.xml",
     "install -Dm644 org.flathub.electron-sample-app.desktop /app/share/applications/org.flathub.electron-sample-app.desktop",
     "install -Dm644 images/logo.svg /app/share/icons/hicolor/scalable/apps/org.flathub.electron-sample-app.svg"
    ],
    "subdir": "main",
    "sources": [
     {
      "type": "file",
      "path": "css/styles.css",
      "dest": "main/css"
     },
     {
      "type": "file",
      "path": "images/logo.svg",
      "dest": "main/images"
     },
     {
      "type": "file",
      "path": "package.json",
      "dest": "main"
     },
     {
      "type": "file",
      "path": "package-lock.json",
      "dest": "main"
     },
     {
      "type": "file",
      "path": "index.html",
      "dest": "main"
     },
     {
      "type": "file",
      "path": "main.js",
      "dest": "main"
     },
     {
      "type": "file",
      "path": "org.flathub.electron-sample-app.desktop",
      "dest": "main"
     },
     {
      "type": "file",
      "path": "org.flathub.electron-sample-app.metainfo.xml",
      "dest": "main"
     },
     "flatpak/generated-sources.json",
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "zypak-wrapper.sh /app/main/electron-sample-app \"$@\""
      ]
     }
    ]
   }
  ]
 }
}