{
 "app_id": "zone.dos.Browser",
 "source_url": "https://raw.githubusercontent.com/flathub/zone.dos.Browser/master/zone.dos.Browser.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:17:41.370873+00:00",
 "manifest": {
  "id": "zone.dos.Browser",
  "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": [
   "--device=dri",
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--share=network"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node22/bin",
   "env": {
    "NPM_CONFIG_LOGLEVEL": "info"
   }
  },
  "modules": [
   {
    "name": "dos-browser",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "/run/build/dos-browser/flatpak-node/cache",
      "npm_config_cache": "/run/build/dos-browser/flatpak-node/npm-cache",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "unzip node-gyp.zip -d ./",
     "npm install --offline --lockfile-version 2",
     "npm run make -- --targets \"@electron-forge/maker-zip\"",
     "unzip out/make/zip/linux/x64/DOS.Zone\\ Browser-linux-x64-8.0.6.zip -d /app",
     "mv /app/DOS.Zone\\ Browser-linux-x64 /app/browser",
     "mv doszone-backend /app/doszone-backend && chmod 777 /app/doszone-backend",
     "mv doszone-backend-x /app/doszone-backend-x && chmod 777 /app/doszone-backend-x",
     "install -Dm755 -t /app/bin/ run.sh",
     "install -Dm644 flathub/zone.dos.Browser.desktop /app/share/applications/zone.dos.Browser.desktop",
     "install -Dm644 flathub/zone.dos.Browser.metainfo.xml /app/share/metainfo/zone.dos.Browser.metainfo.xml",
     "install -Dm644 flathub/zone.dos.Browser.png /app/share/icons/hicolor/512x512/apps/zone.dos.Browser.png"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/js-dos/dos.zone.browser.pc",
      "commit": "57e0b3c4d0d939693cb7215f40307b0dc12f62c8"
     },
     {
      "type": "file",
      "url": "https://v8.js-dos.com/flatpak/node-gyp.zip",
      "sha256": "8905e15b377f3e26e1515d48f1b316b7deca004654c2e52239d599799cb4976f"
     },
     {
      "type": "file",
      "url": "https://v8.js-dos.com/flatpak/v8.0.7/doszone-backend",
      "sha256": "811e6de780e3826c05cf1af4db63bf0d100a2c83e30d8369d0cbd086b5c7380b"
     },
     {
      "type": "file",
      "url": "https://v8.js-dos.com/flatpak/v8.0.7/doszone-backend-x",
      "sha256": "8de60007a6dff04d99313bb402ecf42e0e8e89075e56e54857d0c50776184600"
     },
     "generated-sources.json",
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "zypak-wrapper.sh /app/browser/dos.zone.browser.pc \"$@\""
      ]
     }
    ]
   }
  ]
 }
}