{
 "app_id": "com.simplenote.Simplenote",
 "source_url": "https://raw.githubusercontent.com/flathub/com.simplenote.Simplenote/master/com.simplenote.Simplenote.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=cups",
  "--device=dri",
  "--filesystem=xdg-documents",
  "--filesystem=xdg-download",
  "--talk-name=org.freedesktop.secrets"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:08:44.491717+00:00",
 "manifest": {
  "app-id": "com.simplenote.Simplenote",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "separate-locales": false,
  "command": "simplenote",
  "finish-args": [
   "--env=GTK_PATH=/app/lib/gtkmodules",
   "--socket=x11",
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--socket=cups",
   "--filesystem=xdg-documents",
   "--filesystem=xdg-download",
   "--talk-name=org.freedesktop.secrets"
  ],
  "modules": [
   {
    "name": "libcups",
    "make-args": [
     "libs"
    ],
    "no-make-install": true,
    "post-install": [
     "make install-headers install-libs"
    ],
    "cleanup": [
     "/include"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/OpenPrinting/cups/releases/download/v2.4.17/cups-2.4.17-source.tar.gz",
      "sha256": "89c703238de210d4f4f4e5d4269e3d60c4b2f487aad75a8a1eaecd659e4d0b77"
     }
    ]
   },
   {
    "name": "gtk-cups-backend",
    "buildsystem": "meson",
    "make-args": [
     "modules/printbackends/libprintbackend-cups.so"
    ],
    "no-make-install": true,
    "post-install": [
     "install -Dm 755 modules/printbackends/libprintbackend-cups.so -t /app/lib/gtkmodules/3.0.0/printbackends/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.gnome.org/GNOME/gtk.git",
      "tag": "3.24.52",
      "commit": "6a0b360d473f7c546314738c0c8dd9829eb9d3c2"
     }
    ]
   },
   {
    "name": "gtk-settings",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm 644 gtk-settings.ini /app/etc/xdg/gtk-3.0/settings.ini"
    ],
    "sources": [
     {
      "type": "file",
      "path": "gtk-settings.ini"
     }
    ]
   },
   {
    "name": "simplenote",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "file",
      "path": "com.simplenote.Simplenote.appdata.xml"
     },
     {
      "type": "file",
      "path": "com.simplenote.Simplenote.desktop"
     },
     {
      "type": "file",
      "path": "com.simplenote.Simplenote.png"
     },
     {
      "type": "archive",
      "url": "https://github.com/Automattic/simplenote-electron/releases/download/v2.24.0/Simplenote-linux-2.24.0-arm64.tar.gz",
      "sha256": "8037132f9f2aef15bd7e21a686a3a0397608daacaef8b56a3f6d134ac5ca8dd8",
      "only-arches": [
       "aarch64"
      ],
      "dest": "main"
     },
     {
      "type": "archive",
      "url": "https://github.com/Automattic/simplenote-electron/releases/download/v2.24.0/Simplenote-linux-2.24.0-x64.tar.gz",
      "sha256": "68ebcdd5ae98abe1ca1987e6e1c934dcfff7db663ed9c61a1116e87f98fda289",
      "only-arches": [
       "x86_64"
      ],
      "dest": "main"
     },
     {
      "type": "script",
      "dest-filename": "simplenote.sh",
      "commands": [
       "export TMPDIR=\"$XDG_RUNTIME_DIR/app/$FLATPAK_ID\"",
       "exec zypak-wrapper /app/Simplenote/simplenote \"$@\""
      ]
     }
    ],
    "build-commands": [
     "mkdir -p /app/Simplenote",
     "cp -ra main/* /app/Simplenote/",
     "install simplenote.sh /app/bin/simplenote",
     "install -Dm644 com.simplenote.Simplenote.desktop /app/share/applications/com.simplenote.Simplenote.desktop",
     "install -Dm644 com.simplenote.Simplenote.appdata.xml /app/share/appdata/com.simplenote.Simplenote.appdata.xml",
     "install -Dm644 com.simplenote.Simplenote.png /app/share/icons/hicolor/256x256/apps/com.simplenote.Simplenote.png"
    ]
   }
  ]
 }
}