{
 "app_id": "org.storzbickel.app",
 "source_url": "https://raw.githubusercontent.com/BachenbergS/storz-bickel-app/master/flatpak/org.storzbickel.app.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--share=network",
  "--allow=bluetooth",
  "--device=all",
  "--system-talk-name=org.bluez",
  "--system-talk-name=org.freedesktop.UPower",
  "--device=dri",
  "--persist=.config/storz-bickel-app"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T17:37:29.172897+00:00",
 "manifest": {
  "app-id": "org.storzbickel.app",
  "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.node22"
  ],
  "command": "run.sh",
  "separate-locales": false,
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--share=network",
   "--allow=bluetooth",
   "--device=all",
   "--system-talk-name=org.bluez",
   "--system-talk-name=org.freedesktop.UPower",
   "--device=dri",
   "--persist=.config/storz-bickel-app"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node22/bin",
   "env": {
    "NPM_CONFIG_LOGLEVEL": "info"
   }
  },
  "modules": [
   {
    "name": "storz-bickel-app",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "/run/build/storz-bickel-app/flatpak-node/cache",
      "npm_config_cache": "/run/build/storz-bickel-app/flatpak-node/npm-cache",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "npm install --offline",
     ". ../flatpak-node/electron-builder-arch-args.sh\nnpm run build -- $ELECTRON_BUILDER_ARCH_ARGS --dir\n",
     "cp -a dist/linux*unpacked /app/main",
     "install -Dm755 -t /app/bin/ ../run.sh",
     "install -Dm644 flatpak/org.storzbickel.app.desktop /app/share/applications/org.storzbickel.app.desktop",
     "install -Dm644 assets/icon.png /app/share/icons/hicolor/512x512/apps/org.storzbickel.app.png",
     "install -Dm644 flatpak/org.storzbickel.app.metainfo.xml /app/share/metainfo/org.storzbickel.app.metainfo.xml"
    ],
    "subdir": "main",
    "sources": [
     {
      "type": "dir",
      "path": "..",
      "dest": "main",
      "skip": [
       ".flatpak-builder",
       "build-dir",
       "node_modules",
       "dist",
       ".git",
       "*.flatpak"
      ]
     },
     "generated-sources.json",
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "zypak-wrapper.sh /app/main/storz-bickel-app \"$@\""
      ]
     }
    ]
   }
  ]
 }
}