{
 "app_id": "com.authormore.penpotdesktop",
 "source_url": "https://raw.githubusercontent.com/flathub/com.authormore.penpotdesktop/master/com.authormore.penpotdesktop.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"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:06:58.026443+00:00",
 "manifest": {
  "app-id": "com.authormore.penpotdesktop",
  "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",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons",
   "--share=network",
   "--device=dri"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node24/bin",
   "env": {
    "NPM_CONFIG_LOGLEVEL": "info"
   }
  },
  "modules": [
   {
    "name": "penpot-desktop",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "/run/build/penpot-desktop/flatpak-node/cache",
      "npm_config_cache": "/run/build/penpot-desktop/flatpak-node/npm-cache",
      "npm_config_offline": "true"
     }
    },
    "subdir": "main",
    "build-commands": [
     "npm install --offline",
     ". ../flatpak-node/electron-builder-arch-args.sh\nnpm run build -- $ELECTRON_BUILDER_ARCH_ARGS  --linux --dir\n",
     "cp -a dist/linux*unpacked /app/main",
     "install -Dm755 -t /app/bin/ ../run.sh",
     "install -Dm644 build/flatpak/icons/${FLATPAK_ID}.svg -t /app/share/icons/hicolor/scalable/apps",
     "install -Dm644 build/flatpak/icons/${FLATPAK_ID}.application-x-penpot.svg -t /app/share/icons/hicolor/scalable/mimetypes",
     "install -Dm644 build/flatpak/${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 build/flatpak/${FLATPAK_ID}.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm644 build/flatpak/$FLATPAK_ID-mime.xml -t /app/share/mime/packages/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/author-more/penpot-desktop.git",
      "tag": "v0.25.0",
      "commit": "e26bd7765a0e2db6d022971e0efb56b9ae3a4649",
      "dest": "main",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v?([\\d.]+)$"
      }
     },
     "generated-sources.json",
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "zypak-wrapper.sh /app/main/penpot-desktop --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations \"$@\""
      ]
     }
    ]
   }
  ]
 }
}