{
 "app_id": "org.twinery.Twine",
 "source_url": "https://raw.githubusercontent.com/flathub/org.twinery.Twine/master/org.twinery.Twine.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-download",
  "--filesystem=xdg-documents/Twine:create"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:16:52.152065+00:00",
 "manifest": {
  "app-id": "org.twinery.Twine",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "twine-wrapper",
  "copy-icon": true,
  "separate-locales": false,
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--share=network",
   "--device=dri",
   "--filesystem=xdg-download",
   "--filesystem=xdg-documents/Twine:create",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/lib/*.la",
   "/lib/*.a",
   "/share/pkgconfig",
   "/share/aclocal",
   "/share/gtk-doc",
   "/share/doc",
   "/share/info",
   "/share/man",
   "/man"
  ],
  "modules": [
   {
    "name": "twine",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir twine",
     "cd twine && bsdtar -xf ../twine.zip",
     "mv twine \"${FLATPAK_DEST}\"",
     "install -Dm755 twine.sh /app/bin/twine-wrapper",
     "install -Dm644 org.twinery.Twine.desktop \"${FLATPAK_DEST}/share/applications/org.twinery.Twine.desktop\"",
     "install -Dm644 org.twinery.Twine.metainfo.xml \"${FLATPAK_DEST}/share/metainfo/org.twinery.Twine.metainfo.xml\"",
     "install -Dm644 org.twinery.Twine.svg \"${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg\""
    ],
    "sources": [
     {
      "type": "file",
      "only-arches": [
       "aarch64"
      ],
      "dest-filename": "twine.zip",
      "url": "https://github.com/klembot/twinejs/releases/download/2.12.0/Twine-2.12.0-Linux-arm64.zip",
      "sha256": "5c7c5e748e3507c0533dfd26423272ad4ad194e1d459478f8ecee375282c87c9",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/klembot/twinejs/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name==\"Twine-\" + $version + \"-Linux-arm64.zip\") | .browser_download_url"
      }
     },
     {
      "type": "file",
      "only-arches": [
       "x86_64"
      ],
      "dest-filename": "twine.zip",
      "url": "https://github.com/klembot/twinejs/releases/download/2.12.0/Twine-2.12.0-Linux-x64.zip",
      "sha256": "6e5cf45a6893775e6b7d93ea2b044f82394e1cb7a1801f9fd2c20c8d96c9f5c7",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/klembot/twinejs/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name==\"Twine-\" + $version + \"-Linux-x64.zip\") | .browser_download_url"
      }
     },
     {
      "type": "script",
      "dest-filename": "twine.sh",
      "commands": [
       "export TMPDIR=\"$XDG_RUNTIME_DIR/app/${FLATPAK_ID:-org.twinery.Twine}\"",
       "exec zypak-wrapper \"/app/twine/twine\" \"$@\""
      ]
     },
     {
      "type": "file",
      "path": "org.twinery.Twine.metainfo.xml"
     },
     {
      "type": "file",
      "path": "org.twinery.Twine.desktop"
     },
     {
      "type": "file",
      "dest-filename": "org.twinery.Twine.svg",
      "url": "https://raw.githubusercontent.com/klembot/twinejs/develop/icons/app-release.svg",
      "sha256": "bfad8a4d9646d6616a5f6502b4095f233fdf69b347935bfd830e09d7923c9cab"
     }
    ]
   }
  ]
 }
}