{
 "app_id": "com.super_productivity.SuperProductivity",
 "source_url": "https://raw.githubusercontent.com/flathub/com.super_productivity.SuperProductivity/master/com.super_productivity.SuperProductivity.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=home:ro",
  "--filesystem=xdg-download",
  "--talk-name=org.gnome.Mutter.IdleMonitor.*",
  "--talk-name=org.kde.StatusNotifierWatcher"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-21T12:58:34.785117+00:00",
 "manifest": {
  "app-id": "com.super_productivity.SuperProductivity",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "command": "run.sh",
  "separate-locales": false,
  "rename-icon": "superproductivity",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--share=network",
   "--filesystem=home:ro",
   "--filesystem=xdg-download",
   "--talk-name=org.gnome.Mutter.IdleMonitor.*",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
  ],
  "modules": [
   {
    "name": "super-productivity",
    "buildsystem": "simple",
    "build-commands": [
     "ar x super-productivity.deb",
     "rm super-productivity.deb",
     "tar xvf data.tar.xz",
     "mv \"opt/Super Productivity\" ${FLATPAK_DEST}/superproductivity",
     "install -Dm644 usr/share/applications/superproductivity.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "desktop-file-edit --set-key=Exec --set-value='run.sh %U' ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "patch-electron-desktop-filename ${FLATPAK_DEST}/superproductivity/resources/app.asar",
     "mkdir -p ${FLATPAK_DEST}/share/icons",
     "mv \"usr/share/icons/hicolor\" ${FLATPAK_DEST}/share/icons/",
     "rm -rf ${FLATPAK_DEST}/share/icons/hicolor/1024x1024",
     "rm -rf ${FLATPAK_DEST}/share/icons/hicolor/1080x1080",
     "rm -rf ${FLATPAK_DEST}/share/icons/hicolor/2160x2160",
     "install -Dm755 run.sh ${FLATPAK_DEST}/bin/",
     "install -Dm644 com.super_productivity.SuperProductivity.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo/",
     "install -Dm644 01-list-with-schedule.png ${FLATPAK_DEST}/share/app-info/screenshots/${FLATPAK_ID}/01-list-with-schedule.png",
     "install -Dm644 02-planner.png ${FLATPAK_DEST}/share/app-info/screenshots/${FLATPAK_ID}/02-planner.png",
     "install -Dm644 03-eisenhower.png ${FLATPAK_DEST}/share/app-info/screenshots/${FLATPAK_ID}/03-eisenhower.png",
     "install -Dm644 04-schedule.png ${FLATPAK_DEST}/share/app-info/screenshots/${FLATPAK_ID}/04-schedule.png",
     "install -Dm644 05-list-with-notes.png ${FLATPAK_DEST}/share/app-info/screenshots/${FLATPAK_ID}/05-list-with-notes.png",
     "install -Dm644 06-focus-mode.png ${FLATPAK_DEST}/share/app-info/screenshots/${FLATPAK_ID}/06-focus-mode.png",
     "install -Dm644 07-project.png ${FLATPAK_DEST}/share/app-info/screenshots/${FLATPAK_ID}/07-project.png",
     "install -Dm644 08-task-detail-panel.png ${FLATPAK_DEST}/share/app-info/screenshots/${FLATPAK_ID}/08-task-detail-panel.png"
    ],
    "sources": [
     {
      "type": "file",
      "only-arches": [
       "x86_64"
      ],
      "dest-filename": "super-productivity.deb",
      "url": "https://github.com/super-productivity/super-productivity/releases/download/v19.1.0/superProductivity-amd64.deb",
      "sha256": "9e8d440f99c7bf29677fec03a60befbf9572f7daff553f5ffb2a58c862e61a5c",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/johannesjo/super-productivity/releases/latest",
       "tag-query": ".tag_name",
       "timestamp-query": ".published_at",
       "version-query": ".name",
       "url-query": ".assets[] | select(.name == \"superProductivity-amd64.deb\") | .browser_download_url"
      }
     },
     {
      "type": "file",
      "path": "com.super_productivity.SuperProductivity.metainfo.xml"
     },
     {
      "type": "file",
      "path": "01-list-with-schedule.png"
     },
     {
      "type": "file",
      "path": "02-planner.png"
     },
     {
      "type": "file",
      "path": "03-eisenhower.png"
     },
     {
      "type": "file",
      "path": "04-schedule.png"
     },
     {
      "type": "file",
      "path": "05-list-with-notes.png"
     },
     {
      "type": "file",
      "path": "06-focus-mode.png"
     },
     {
      "type": "file",
      "path": "07-project.png"
     },
     {
      "type": "file",
      "path": "08-task-detail-panel.png"
     },
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "zypak-wrapper.sh /app/superproductivity/superproductivity \"$@\""
      ]
     }
    ]
   }
  ]
 }
}