{
 "app_id": "net.pixieditor.PixiEditor",
 "source_url": "https://raw.githubusercontent.com/flathub/net.pixieditor.PixiEditor/master/net.pixieditor.PixiEditor.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=x11",
  "--device=dri",
  "--filesystem=xdg-download",
  "--filesystem=xdg-documents",
  "--filesystem=xdg-pictures",
  "--filesystem=xdg-desktop"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:13:42.311099+00:00",
 "manifest": {
  "id": "net.pixieditor.PixiEditor",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.dotnet8"
  ],
  "build-options": {
   "prepend-path": "/usr/lib/sdk/dotnet8/bin",
   "append-ld-library-path": "/usr/lib/sdk/dotnet8/lib",
   "prepend-pkg-config-path": "/usr/lib/sdk/dotnet8/lib/pkgconfig"
  },
  "command": "PixiEditor.Desktop",
  "finish-args": [
   "--persist=.local/share/PixiEditor",
   "--persist=.config/PixiEditor",
   "--device=dri",
   "--socket=x11",
   "--share=ipc",
   "--share=network",
   "--filesystem=xdg-download",
   "--filesystem=xdg-documents",
   "--filesystem=xdg-pictures",
   "--filesystem=xdg-desktop",
   "--env=DOTNET_ROOT=/app/lib/dotnet"
  ],
  "modules": [
   {
    "name": "dotnet",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/dotnet8/bin/install.sh"
    ]
   },
   {
    "name": "PixiEditor binary",
    "buildsystem": "simple",
    "sources": [
     "output-sources.json",
     {
      "type": "file",
      "path": "appsettings.json"
     },
     {
      "type": "file",
      "path": "pixieditor.sh"
     },
     {
      "type": "archive",
      "url": "https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-27/wasi-sdk-27.0-x86_64-linux.tar.gz",
      "sha256": "b7d4d944c88503e4f21d84af07ac293e3440b1b6210bfd7fe78e0afd92c23bc2"
     },
     {
      "type": "git",
      "url": "https://github.com/PixiEditor/PixiEditor.git",
      "commit": "de3ff860299719e475ba4d60a91b12f3a47a21c1",
      "dest": "PixiEditor"
     }
    ],
    "build-commands": [
     "export WASI_SDK_PATH=\"$(realpath wasi-sdk-27.0-x86_64-linux)\"",
     "dotnet publish PixiEditor/src/PixiEditor.Desktop/PixiEditor.Desktop.csproj --source nuget-sources -r linux-x64 -c ReleaseNoUpdate --no-self-contained -o publish",
     "mkdir -p ${FLATPAK_DEST}/bin",
     "cp -r publish/* ${FLATPAK_DEST}/bin",
     "cp appsettings.json ${FLATPAK_DEST}/bin",
     "install -Dm755 pixieditor.sh ${FLATPAK_DEST}/bin/pixieditor.sh",
     "install -Dm644 PixiEditor/assets/flatpak/icon-512.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png",
     "install -Dm644 PixiEditor/assets/flatpak/net.pixieditor.PixiEditor.metainfo.xml ${FLATPAK_DEST}/share/metainfo/net.pixieditor.PixiEditor.metainfo.xml",
     "install -Dm644 PixiEditor/assets/flatpak/net.pixieditor.PixiEditor.desktop ${FLATPAK_DEST}/share/applications/net.pixieditor.PixiEditor.desktop",
     "install -Dm644 PixiEditor/assets/flatpak/net.pixieditor.PixiEditor-mime.xml ${FLATPAK_DEST}/share/mime/packages/net.pixieditor.PixiEditor-mime.xml"
    ]
   }
  ]
 }
}