{
 "app_id": "me.kozec.syncthingtk",
 "source_url": "https://raw.githubusercontent.com/flathub/me.kozec.syncthingtk/master/me.kozec.syncthingtk.yaml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "49",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--filesystem=host",
  "--talk-name=org.kde.StatusNotifierWatcher"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-17T16:13:11.862286+00:00",
 "manifest": {
  "app-id": "me.kozec.syncthingtk",
  "runtime": "org.gnome.Platform",
  "runtime-version": "49",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.golang",
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "syncthing-gtk",
  "rename-desktop-file": "syncthing-gtk.desktop",
  "rename-icon": "syncthing-gtk",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--filesystem=host",
   "--share=network",
   "--talk-name=org.kde.StatusNotifierWatcher"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin",
   "env": {
    "CARGO_HOME": "/run/build/python3-bcrypt/cargo",
    "CARGO_NET_OFFLINE": "true",
    "RUST_BACKTRACE": "1",
    "RUSTFLAGS": "-g",
    "RUSTC_WRAPPER": "/app/bin/sccache",
    "SCCACHE_DIR": "/run/ccache/sccache/"
   }
  },
  "modules": [
   {
    "name": "psmisc",
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/psmisc/psmisc-23.7.tar.xz",
      "sha256": "58c55d9c1402474065adae669511c191de374b0871eec781239ab400b907c327",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 3721,
       "url-template": "https://downloads.sourceforge.net/psmisc/psmisc-$version.tar.xz"
      }
     }
    ],
    "cleanup": [
     "/bin/fuser",
     "/bin/p*",
     "/share/man"
    ]
   },
   {
    "name": "gobject-introspection",
    "disabled": true,
    "buildsystem": "meson",
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/gobject-introspection/1.71/gobject-introspection-1.71.0.tar.xz",
      "sha256": "555dc3997c2892228543029f58610b83fc1da733e4e3d18e9363d7b5a81164dd"
     }
    ]
   },
   "shared-modules/dbus-glib/dbus-glib.json",
   "shared-modules/libappindicator/libappindicator-gtk3-introspection-12.10.json",
   {
    "name": "python3-bcrypt",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --no-index --find-links=file://${PWD} --prefix=${FLATPAK_DEST} bcrypt"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/4d/4d/c43332dcaaddb7710a8ff5269fcccba97ed3c85987ddaa808db084267b9a/bcrypt-4.3.0-cp39-abi3-manylinux_2_34_aarch64.whl",
      "sha256": "3004df1b323d10021fda07a813fd33e0fd57bef0e9a480bb143877f6cba996fe",
      "only-arches": [
       "aarch64"
      ]
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/dc/7f/1e36379e169a7df3a14a1c160a49b7b918600a6008de43ff20d479e6f4b5/bcrypt-4.3.0-cp39-abi3-manylinux_2_34_x86_64.whl",
      "sha256": "531457e5c839d8caea9b589a1bcfe3756b0547d7814e9ce3d437f17da75c32b0",
      "only-arches": [
       "x86_64"
      ]
     }
    ]
   },
   "syncthing.yaml",
   {
    "name": "syncthing-gtk",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \".\" --no-build-isolation",
     "for icon in /app/share/icons/hicolor/*/status/si-syncthing*.png; do cp -ar --reflink=auto $icon ${icon/si-syncthing/me.kozec.syncthingtk}; done",
     "for icon in /app/share/icons/hicolor/*/emblems/*-active.png; do cp -ar --reflink=auto $icon ${icon/emblem-syncthing/me.kozec.syncthingtk}; done"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/syncthing-gtk/syncthing-gtk.git",
      "commit": "3118560fe15e7b2c638c09c66c9be21725bfe2dc",
      "tag": "0.9.4.5",
      "x-checker-data": {
       "type": "git",
       "pattern": "\\d\\.\\d\\.\\d\\.\\d"
      }
     },
     {
      "type": "patch",
      "path": "0001-appdata-remove-URL-to-make-the-validator-stop-compla.patch"
     }
    ],
    "cleanup": [
     "/share/pixmaps"
    ],
    "modules": [
     "python-dateutil.json"
    ]
   }
  ]
 }
}