{
 "app_id": "io.github.hkdb.Aerion",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.hkdb.Aerion/master/io.github.hkdb.Aerion.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",
  "--system-talk-name=org.freedesktop.login1"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-21T13:07:34.001681+00:00",
 "manifest": {
  "app-id": "io.github.hkdb.Aerion",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.golang",
   "org.freedesktop.Sdk.Extension.node24"
  ],
  "command": "aerion",
  "finish-args": [
   "--share=network",
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--system-talk-name=org.freedesktop.login1"
  ],
  "modules": [
   {
    "name": "aerion",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/golang/bin:/usr/lib/sdk/node24/bin",
     "env": {
      "GOROOT": "/usr/lib/sdk/golang",
      "GOPATH": "/run/build/aerion/go",
      "GOCACHE": "/run/build/aerion/go-cache",
      "GO111MODULE": "on",
      "CGO_ENABLED": "1",
      "npm_config_cache": "/run/build/aerion/flatpak-node/npm-cache",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "cd frontend && npm install --offline --legacy-peer-deps",
     "cd frontend && npm run build",
     "go build -mod=vendor -tags desktop,webkit2_41,production -ldflags \"-w -s\" -o aerion",
     "install -Dm755 aerion /app/bin/aerion",
     "install -Dm755 aerion-creds /app/lib/aerion/aerion-creds",
     "install -Dm644 build/linux/aerion.desktop /app/share/applications/io.github.hkdb.Aerion.desktop",
     "for sz in 32 48 64 128 256; do\n  install -Dm644 \"build/linux/icons/${sz}x${sz}/io.github.hkdb.Aerion.png\" \\\n    \"/app/share/icons/hicolor/${sz}x${sz}/apps/io.github.hkdb.Aerion.png\"\ndone\n",
     "install -Dm644 build/linux/icons/scalable/io.github.hkdb.Aerion.svg /app/share/icons/hicolor/scalable/apps/io.github.hkdb.Aerion.svg",
     "install -Dm644 build/flatpak/io.github.hkdb.Aerion.metainfo.xml /app/share/metainfo/io.github.hkdb.Aerion.metainfo.xml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/hkdb/aerion.git",
      "tag": "v0.3.5",
      "commit": "36c126474ec3b7ef07577794683c724c610cfd3b"
     },
     "go.mod.yml",
     "node-sources.json",
     {
      "type": "file",
      "url": "https://github.com/hkdb/aerion/releases/download/v0.3.5/flathub-build-env-v0.3.5-linux-x86_64",
      "sha256": "ecf2cc898d80ab1df722c74c32d65dd962ec12b58b65301857ee537040f4a545",
      "dest-filename": "aerion-creds",
      "only-arches": [
       "x86_64"
      ]
     },
     {
      "type": "file",
      "url": "https://github.com/hkdb/aerion/releases/download/v0.3.5/flathub-build-env-v0.3.5-linux-aarch64",
      "sha256": "9004c8b01da3fe496862af56491713831292500d277ae5ad177865c8fcb15819",
      "dest-filename": "aerion-creds",
      "only-arches": [
       "aarch64"
      ]
     }
    ]
   }
  ]
 }
}