{
 "app_id": "io.github.CardiJey.schulrechner",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.CardiJey.schulrechner/master/io.github.CardiJey.schulrechner.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:10:19.173604+00:00",
 "manifest": {
  "app-id": "io.github.CardiJey.schulrechner",
  "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.node22"
  ],
  "command": "run.sh",
  "separate-locales": false,
  "finish-args": [
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri",
   "--share=ipc"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node22/bin",
   "env": {
    "NPM_CONFIG_LOGLEVEL": "info"
   }
  },
  "modules": [
   {
    "name": "schulrechner",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "/run/build/schulrechner/flatpak-node/cache",
      "npm_config_cache": "/run/build/schulrechner/flatpak-node/npm-cache",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "jq 'del(.devDependencies[\"cordova\"], .devDependencies[\"cordova-android\"])' package.json > package.json.tmp",
     "mv package.json.tmp package.json",
     "npm install --offline",
     "mv node_modules/mathjs/lib/browser/math.js www/js/math.js",
     "npm run update_version",
     ". ../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 flatpak/io.github.CardiJey.schulrechner.metainfo.xml /app/share/metainfo/io.github.CardiJey.schulrechner.metainfo.xml",
     "install -Dm644 flatpak/io.github.CardiJey.schulrechner.desktop /app/share/applications/io.github.CardiJey.schulrechner.desktop",
     "install -Dm644 flatpak/io.github.CardiJey.schulrechner.png /app/share/icons/hicolor/512x512/apps/io.github.CardiJey.schulrechner.png"
    ],
    "subdir": "main",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/CardiJey/schulrechner",
      "commit": "36b273e32cf7f81d4045b034abe88773c9d24de9",
      "dest": "main"
     },
     "generated-sources.json",
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "export ELECTRON_OZONE_PLATFORM_HINT=wayland",
       "zypak-wrapper.sh /app/main/schulrechner \"$@\""
      ]
     }
    ]
   }
  ]
 }
}