{
 "app_id": "io.mimiri.notes",
 "source_url": "https://raw.githubusercontent.com/flathub/io.mimiri.notes/master/io.mimiri.notes.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=dri",
  "--talk-name=org.kde.StatusNotifierWatcher"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:12:50.688031+00:00",
 "manifest": {
  "app-id": "io.mimiri.notes",
  "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",
   "--device=dri",
   "--share=network",
   "--talk-name=org.kde.StatusNotifierWatcher"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node24/bin",
   "env": {
    "NPM_CONFIG_LOGLEVEL": "info"
   }
  },
  "modules": [
   {
    "name": "mimiri-notes",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "/run/build/mimiri-notes/flatpak-node/cache",
      "npm_config_cache": "/run/build/mimiri-notes/flatpak-node/npm-cache",
      "npm_config_nodedir": "/usr/lib/sdk/node24",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "npm install --offline",
     "npm run unpack-bundle -- ./bundle.json",
     ". ../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 io.mimiri.notes.metainfo.xml -t /app/share/metainfo/",
     "install -Dm755 io.mimiri.notes.desktop -t /app/share/applications/",
     "install -Dm644 assets/hicolor/256x256/io.mimiri.notes.png -t /app/share/icons/hicolor/256x256/apps/",
     "install -Dm644 assets/hicolor/512x512/io.mimiri.notes.png -t /app/share/icons/hicolor/256x256/apps/"
    ],
    "subdir": "main",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/innonova/mimiri-client-electron",
      "commit": "81d59fe10f05743c9ef11778299a42cc43ef26c2",
      "dest": "main"
     },
     {
      "type": "file",
      "url": "https://update.mimiri.io/2024101797F6C918.2.6.20.json",
      "sha256": "2e0ea0f152f9794aafdd41cabdad728f5210d9f94e19c4c55bcabcbb73a5d075",
      "dest": "main",
      "dest-filename": "bundle.json"
     },
     "generated-sources.json",
     {
      "type": "script",
      "dest": "main",
      "dest-filename": "run.sh",
      "commands": [
       "zypak-wrapper.sh /app/main/mimiri-notes \"$@\""
      ]
     }
    ]
   }
  ]
 }
}