{
 "app_id": "app.shizumu.Shizumu",
 "source_url": "https://raw.githubusercontent.com/flathub/app.shizumu.Shizumu/master/app.shizumu.Shizumu.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-run/tray-icon:create",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.StatusNotifierItem"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:06:27.535510+00:00",
 "manifest": {
  "app-id": "app.shizumu.Shizumu",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable",
   "org.freedesktop.Sdk.Extension.node24"
  ],
  "command": "app.shizumu.Shizumu",
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri",
   "--talk-name=org.kde.StatusNotifierItem",
   "--talk-name=com.canonical.AppMenu.Registrar",
   "--filesystem=xdg-run/tray-icon:create"
  ],
  "modules": [
   "shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json",
   {
    "name": "shizumu",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/node24/bin",
     "env": {
      "CARGO_HOME": "/run/build/shizumu/cargo",
      "CARGO_NET_OFFLINE": "true",
      "XDG_CACHE_HOME": "/run/build/shizumu/flatpak-node/cache",
      "npm_config_cache": "/run/build/shizumu/flatpak-node/npm-cache",
      "npm_config_offline": "true",
      "PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD": "1"
     }
    },
    "build-commands": [
     "npm ci --offline",
     "npm run build",
     "cargo --offline fetch --manifest-path src-tauri/Cargo.toml",
     "npx tauri build --no-bundle",
     "cargo build --offline --release --manifest-path src-tauri/Cargo.toml --bin shizumu-cli",
     "install -Dm755 src-tauri/target/release/shizumu ${FLATPAK_DEST}/bin/${FLATPAK_ID}",
     "install -Dm755 src-tauri/target/release/shizumu-cli ${FLATPAK_DEST}/bin/shizumu-cli",
     "desktop-file-edit --set-key=Exec --set-value=${FLATPAK_ID} src-tauri/resources/app.shizumu.Shizumu.desktop",
     "desktop-file-edit --set-key=StartupWMClass --set-value=${FLATPAK_ID} src-tauri/resources/app.shizumu.Shizumu.desktop",
     "install -Dm644 src-tauri/resources/app.shizumu.Shizumu.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 src-tauri/resources/app.shizumu.Shizumu.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm644 src-tauri/icons/32x32.png ${FLATPAK_DEST}/share/icons/hicolor/32x32/apps/${FLATPAK_ID}.png",
     "install -Dm644 src-tauri/icons/128x128.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png",
     "install -Dm644 src-tauri/icons/256x256.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png",
     "install -Dm644 src-tauri/icons/512x512.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/shizumu-app/shizumu.git",
      "tag": "v0.7.8",
      "commit": "ac1ac649946d0e886c2ae9d46ae088f8b365d603",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "archive",
      "url": "https://github.com/openssl/openssl/releases/download/openssl-3.6.2/openssl-3.6.2.tar.gz",
      "sha256": "aaf51a1fe064384f811daeaeb4ec4dce7340ec8bd893027eee676af31e83a04f",
      "dest": "src-tauri/vendor/openssl-src/openssl"
     },
     "cargo-sources.json",
     "node-sources.json"
    ]
   }
  ]
 }
}