{
 "app_id": "io.github.chnapy.pkvault",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.chnapy.pkvault/master/io.github.chnapy.pkvault.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=all",
  "--filesystem=~/.var/app/org.chnapy.pkvault:ro"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:10:45.056544+00:00",
 "manifest": {
  "id": "io.github.chnapy.pkvault",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.dotnet10",
   "org.freedesktop.Sdk.Extension.node22"
  ],
  "separate-locales": false,
  "command": "PKVault",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=all",
   "--share=network",
   "--filesystem=~/.var/app/org.chnapy.pkvault:ro",
   "--env=__NV_DISABLE_EXPLICIT_SYNC=1"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/dotnet10/bin:/usr/lib/sdk/node22/bin",
   "env": {
    "DOTNET_CLI_TELEMETRY_OPTOUT": "1",
    "DOTNET_NOLOGO": "1",
    "DOTNET_ROOT": "/usr/lib/sdk/dotnet10",
    "XDG_CACHE_HOME": "/run/build/build/.cache",
    "npm_config_cache": "/run/build/build/flatpak-node/npm-cache"
   },
   "arch": {
    "x86_64": {
     "env": {
      "TARGET_RID": "linux-x64"
     }
    },
    "aarch64": {
     "env": {
      "TARGET_RID": "linux-arm64"
     }
    }
   }
  },
  "modules": [
   {
    "name": "build",
    "buildsystem": "simple",
    "build-commands": [
     "npm install --prefix frontend --offline",
     "npm run --prefix frontend gen:routes",
     "VITE_OPENAPI_PATH=../PKVault.Core/swagger.json npm run --prefix frontend gen:sdk:basic",
     "npm run --prefix frontend gen:css:dts",
     "DOCS_PATH=../docs/functional npm run --prefix frontend gen:docs",
     "npm run --prefix frontend build -- --outDir ../PKVault.Desktop/Resources/wwwroot",
     "dotnet publish PKVault.Desktop/PKVault.Desktop.csproj --source \"nuget-sources-$TARGET_RID\" -c Release -r $TARGET_RID -p:RuntimeIdentifiers=$TARGET_RID -o output",
     "install -Dm755 output/PKVault /app/bin/PKVault",
     "install -Dm644 LICENSE -t /app/share/licenses/$FLATPAK_ID/build",
     "install -Dm644 PKVault.Desktop/publishers/flatpak/io.github.chnapy.pkvault.desktop /app/share/applications/io.github.chnapy.pkvault.desktop",
     "install -Dm644 PKVault.Desktop/publishers/flatpak/io.github.chnapy.pkvault.metainfo.xml /app/share/metainfo/io.github.chnapy.pkvault.metainfo.xml",
     "install -Dm644 PKVault.Desktop/publishers/common/icons/pkvault_scalable.svg /app/share/icons/hicolor/scalable/apps/io.github.chnapy.pkvault.svg"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Chnapy/PKVault",
      "disable-submodules": true,
      "tag": "v2.3.2",
      "commit": "867e9d9535b3646396d9292dd98dc8dfac535bb9"
     },
     "desktop-nuget-sources-linux-x64.json",
     "desktop-nuget-sources-linux-arm64.json",
     "frontend-npm-sources.json"
    ]
   }
  ]
 }
}