{
 "app_id": "io.github.fm_elpac.pmim_ibus",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.fm_elpac.pmim_ibus/master/io.github.fm_elpac.pmim_ibus.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri",
  "--filesystem=xdg-run/pmim:create"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:11:04.748827+00:00",
 "manifest": {
  "app-id": "io.github.fm_elpac.pmim_ibus",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "24.08",
  "separate-locales": false,
  "command": "run.sh",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--share=network",
   "--device=dri",
   "--filesystem=xdg-run/pmim:create"
  ],
  "modules": [
   {
    "name": "pmim-ibus",
    "buildsystem": "simple",
    "build-commands": [
     "install -D -t /app/share/metainfo/ pmim-ibus/flatpak/io.github.fm_elpac.pmim_ibus.metainfo.xml",
     "install -D -t /app/share/applications/ pmim-ibus/flatpak/io.github.fm_elpac.pmim_ibus.desktop",
     "install -D pmim-ibus/logo/pmim-2024-2.svg /app/share/icons/hicolor/scalable/apps/io.github.fm_elpac.pmim_ibus.svg",
     "install -D -t /app/ pmim-ibus/LICENSE",
     "install -D -t /app/ pmim-ibus/README.md",
     "install -Dm755 -t /app/bin/ run.sh",
     "install -Dm755 -t /app/bin/ pmim-ibus/flatpak/restart.sh",
     "install -Dm755 -t /app/bin/ dist-deno/deno",
     "if [ \"$FLATPAK_ARCH\" == \"x86_64\" ]; then\n  install -Dm755 -t /app/bin/ dist-librush/release/ibrus\nfi\n",
     "if [ \"$FLATPAK_ARCH\" == \"aarch64\" ]; then\n  install -Dm755 -t /app/bin/ dist-librush/aarch64-unknown-linux-gnu/release/ibrus\nfi\n",
     "cp pmim-ibus/flatpak/pmim_ibrus.xml /app",
     "mkdir -p /app/main",
     "cp pmim-ibus/electronjs/*.js /app/main",
     "cp -r server /app/",
     "cp -r ui/dist/* /app/server/static/",
     "mkdir -p /app/server/plugin",
     "cp -r plugin/* /app/server/plugin",
     "mkdir -p /app/dist-electron",
     "cp dist-electron.zip /app/dist-electron",
     "cd /app/dist-electron && unzip dist-electron.zip",
     "rm /app/dist-electron/dist-electron.zip",
     "zstd -d pmim_sys-0.db.zst",
     "cp pmim_sys-0.db /app"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "env PMIMS_DB=${XDG_CONFIG_HOME}/pmim PMIMS_PLUGIN=${XDG_CONFIG_HOME}/pmim/plugin zypak-wrapper.sh /app/dist-electron/electron /app/main/main.js \"$@\""
      ]
     },
     {
      "type": "git",
      "dest": "pmim-ibus",
      "url": "https://github.com/fm-elpac/pmim-ibus",
      "tag": "v0.1.11",
      "commit": "3880c98910745a536e620197e9049f3d76abe7c2"
     },
     {
      "type": "archive",
      "dest": "ui",
      "url": "https://github.com/fm-elpac/pmim-ibus/releases/download/v0.1.11/ui-vue-dist.tar.zst",
      "sha256": "20bf249b033bfa9817ab86acc15b5c3582197785cdf45291766dfbe828cc2793"
     },
     {
      "type": "archive",
      "dest": "plugin",
      "url": "https://github.com/fm-elpac/pmim-ibus/releases/download/v0.1.11/pmim-plugin.tar.zst",
      "sha256": "6526a223cca9cc36a10edc46c35b2f85bd757f64ee279c1277d40d9c27826a5d"
     },
     {
      "type": "archive",
      "dest": "server",
      "url": "https://github.com/fm-elpac/pmim/releases/download/v0.1.5/pmim-server.tar.zst",
      "sha256": "8b63350669bfc25bbedcb6a87f0af1ab8630e5e2ea356acef8bf034450da0e79"
     },
     {
      "type": "archive",
      "dest": "dist-deno",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/denoland/deno/releases/download/v1.46.3/deno-x86_64-unknown-linux-gnu.zip",
      "sha256": "39bb1d21ad19c16fcb14f9d58fb542c2bccf0cd92c19aee8127ac5112b48bf83"
     },
     {
      "type": "archive",
      "dest": "dist-deno",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/denoland/deno/releases/download/v1.46.3/deno-aarch64-unknown-linux-gnu.zip",
      "sha256": "acf7e0110e186fc515a1b7367d9c56a9f0205ad448c1c08ab769b8e3ce6f700f"
     },
     {
      "type": "file",
      "dest-filename": "dist-electron.zip",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/electron/electron/releases/download/v35.0.3/electron-v35.0.3-linux-x64.zip",
      "sha256": "44504bde889285d5798bd5921de87af492551ab1221be531a678dbb39ad58288"
     },
     {
      "type": "file",
      "dest-filename": "dist-electron.zip",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/electron/electron/releases/download/v35.0.3/electron-v35.0.3-linux-arm64.zip",
      "sha256": "b6068824cfe1f69add33320237cb994e2f9630fb568afa5c4dca6e6b74c6f6e0"
     },
     {
      "type": "archive",
      "dest": "dist-librush",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/fm-elpac/librush/releases/download/v0.2.1/librush_release_x86_64-unknown-linux-gnu.tar.zst",
      "sha256": "1d6120fb6d8e1b7738afef6cf54012c467e97768936d3b3b758ed341a7d99bfa"
     },
     {
      "type": "archive",
      "dest": "dist-librush",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/fm-elpac/librush/releases/download/v0.2.1/librush_release_aarch64-unknown-linux-gnu.tar.zst",
      "sha256": "50ba709f1ce9d9ecc0746e69843d4c1e669557c3eeb7f58b447ba7f11dd80a1d"
     },
     {
      "type": "file",
      "dest-filename": "pmim_sys-0.db.zst",
      "url": "https://github.com/fm-elpac/pmim-data/releases/download/v0.1.5/pmim_sys-0.db.zst",
      "sha256": "e4d424c095c3bcbff2d0a9c2aa4bca6dde8185454d18d4c96fa058781a54ef60"
     }
    ]
   }
  ]
 }
}