{
 "app_id": "rocks.poopjournal.librelinkupdesktop",
 "source_url": "https://raw.githubusercontent.com/flathub/rocks.poopjournal.librelinkupdesktop/master/rocks.poopjournal.librelinkupdesktop.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:17:20.151644+00:00",
 "manifest": {
  "app-id": "rocks.poopjournal.librelinkupdesktop",
  "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.node20"
  ],
  "command": "run.sh",
  "separate-locales": false,
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--share=network"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node20/bin",
   "env": {
    "NPM_CONFIG_LOGLEVEL": "info"
   }
  },
  "modules": [
   {
    "name": "librelinkupdesktop",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "/run/build/librelinkupdesktop/flatpak-node/cache",
      "npm_config_cache": "/run/build/librelinkupdesktop/flatpak-node/npm-cache",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "npm install --legacy-peer-deps --offline",
     "./flatpak-node/electron-builder-arch-args.sh",
     "npx ts-node ./.erb/scripts/clean.js dist && npm run build && npx electron-builder --linux --dir $ELECTRON_BUILDER_ARCH_ARGS",
     "cp -a release/build/linux*unpacked /app/main",
     "install -Dm755 -t /app/bin/ ./run.sh",
     "install -Dm644 assets/logo.svg /app/share/icons/hicolor/scalable/apps/rocks.poopjournal.librelinkupdesktop.svg",
     "install -Dm644 flathub/rocks.poopjournal.librelinkupdesktop.desktop /app/share/applications/rocks.poopjournal.librelinkupdesktop.desktop",
     "install -Dm444 flathub/rocks.poopjournal.librelinkupdesktop.metainfo.xml /app/share/metainfo/rocks.poopjournal.librelinkupdesktop.metainfo.xml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/deviitorinc/LibreLinkUpDesktop.git",
      "commit": "c53d5b543e591ca0525a1b03f78526add8fcd8be"
     },
     "generated-sources.json",
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "zypak-wrapper.sh /app/main/librelinkupdesktop \"$@\""
      ]
     }
    ]
   }
  ]
 }
}