{
 "app_id": "com.dygma.bazecor",
 "source_url": "https://raw.githubusercontent.com/flathub/com.dygma.bazecor/master/com.dygma.bazecor.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=all",
  "--filesystem=host-etc:ro",
  "--filesystem=/run/udev:ro"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:07:14.087842+00:00",
 "manifest": {
  "app-id": "com.dygma.bazecor",
  "base-version": "25.08",
  "base": "org.electronjs.Electron2.BaseApp",
  "runtime-version": "25.08",
  "runtime": "org.freedesktop.Platform",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node24"
  ],
  "command": "Bazecor",
  "separate-locales": false,
  "finish-args": [
   "--device=all",
   "--env=ELECTRON_OZONE_PLATFORM_HINT=auto",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons",
   "--filesystem=/run/udev:ro",
   "--filesystem=host-etc:ro",
   "--share=ipc",
   "--share=network",
   "--socket=fallback-x11",
   "--socket=wayland"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node24/bin",
   "env": {
    "NPM_CONFIG_LOGLEVEL": "info"
   }
  },
  "modules": [
   {
    "name": "eudev",
    "config-opts": [
     "--disable-hwdb",
     "--disable-logging",
     "--disable-gudev",
     "--disable-introspection",
     "--disable-keymap",
     "--disable-mtd_probe"
    ],
    "cleanup": [
     "/include",
     "/etc",
     "/libexec",
     "/sbin",
     "/lib/pkgconfig",
     "/man",
     "/share/aclocal",
     "/share/doc",
     "/share/gtk-doc",
     "/share/man",
     "/share/pkgconfig",
     "*.la",
     "*.a"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/eudev-project/eudev",
      "tag": "v3.2.14",
      "commit": "9e7c4e744b9e7813af9acee64b5e8549ea1fbaa3"
     }
    ]
   },
   {
    "name": "com.dygma.bazecor",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "/run/build/com.dygma.bazecor/flatpak-node/cache",
      "npm_config_cache": "/run/build/com.dygma.bazecor/flatpak-node/npm-cache",
      "npm_config_offline": "true",
      "npm_config_nodedir": "/run/build/com.dygma.bazecor/flatpak-node/cache/node-gyp/34.2.0",
      "npm_config_runtime": "electron",
      "npm_config_target": "34.2.0"
     }
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Dygmalab/Bazecor",
      "tag": "v1.10.0",
      "commit": "b2a9248f289ebc4002a6e350592c4ba0abf25fa1"
     },
     {
      "type": "patch",
      "path": "forge.config.ts.patch"
     },
     {
      "type": "patch",
      "path": "onReadyToShow.ts.patch"
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/mean-ui-thread/Bazecor/c6429d5dcbc8cb3fec5e45dc7c8e41b32aacbbbe/build/com.dygma.bazecor.metainfo.xml",
      "sha256": "ab447877de5616c07a7828f5efb8eedef2f8d1e8ffead91ecff65326b3a2399b",
      "dest-filename": "com.dygma.bazecor.metainfo.xml"
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/mean-ui-thread/Bazecor/c6429d5dcbc8cb3fec5e45dc7c8e41b32aacbbbe/build/com.dygma.bazecor.desktop",
      "sha256": "691ecaa50f666071a12d1da3d7cdf6cdf9c0bf46aec0632266e962ea087df4a2",
      "dest-filename": "com.dygma.bazecor.desktop"
     },
     {
      "type": "script",
      "dest-filename": "Bazecor",
      "commands": [
       "exec zypak-wrapper /app/lib/com.dygma.bazecor/Bazecor \"$@\""
      ]
     },
     {
      "type": "file",
      "path": ".yarnrc"
     },
     "generated-sources.json"
    ],
    "build-commands": [
     "yarn install --frozen-lockfile --offline",
     "yarn electron-forge package --platform=linux",
     "mkdir -p ${FLATPAK_DEST}/lib/com.dygma.bazecor",
     "case \"$(uname -m)\" in\n  x86_64)  BAZECOR_ARCH=x64 ;;\n  aarch64) BAZECOR_ARCH=arm64 ;;\nesac\ncp -r out/Bazecor-linux-${BAZECOR_ARCH}/* ${FLATPAK_DEST}/lib/com.dygma.bazecor/\n",
     "install -Dm755 Bazecor \"${FLATPAK_DEST}/bin/Bazecor\"",
     "install -Dm644 com.dygma.bazecor.desktop \"${FLATPAK_DEST}/share/applications/com.dygma.bazecor.desktop\"",
     "install -Dm644 com.dygma.bazecor.metainfo.xml \"${FLATPAK_DEST}/share/metainfo/com.dygma.bazecor.metainfo.xml\"",
     "install -Dm644 build/logo.png \"${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/com.dygma.bazecor.png\""
    ]
   }
  ]
 }
}