{
 "app_id": "io.github.picocrypt_ng.Picocrypt-NG",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.picocrypt_ng.Picocrypt-NG/master/io.github.picocrypt_ng.Picocrypt-NG.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--device=dri",
  "--filesystem=home"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:11:56.654467+00:00",
 "manifest": {
  "app-id": "io.github.picocrypt_ng.Picocrypt-NG",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.golang"
  ],
  "command": "picocrypt-ng-launcher",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--filesystem=home",
   "--device=dri"
  ],
  "build-options": {
   "env": [
    "GOBIN=/app/bin",
    "GOROOT=/usr/lib/sdk/golang",
    "CGO_ENABLED=1",
    "GOPROXY=off"
   ]
  },
  "modules": [
   {
    "name": "picocrypt-ng",
    "buildsystem": "simple",
    "build-commands": [
     "cd src && $GOROOT/bin/go build -tags wayland -mod=vendor -ldflags=\"-s -w\" -o picocrypt-ng-wayland ./cmd/picocrypt",
     "cd src && $GOROOT/bin/go build -mod=vendor -ldflags=\"-s -w\" -o picocrypt-ng-x11 ./cmd/picocrypt",
     "install -Dm00755 src/picocrypt-ng-wayland $FLATPAK_DEST/bin/picocrypt-ng-wayland",
     "install -Dm00755 src/picocrypt-ng-x11 $FLATPAK_DEST/bin/picocrypt-ng-x11",
     "install -Dm00755 dist/flatpak/picocrypt-ng-launcher.sh $FLATPAK_DEST/bin/picocrypt-ng-launcher",
     "ln -sf picocrypt-ng-launcher $FLATPAK_DEST/bin/picocrypt-ng-gui",
     "install -Dm00644 images/key.svg $FLATPAK_DEST/share/icons/hicolor/scalable/apps/$FLATPAK_ID.svg",
     "install -Dm00644 dist/linux/io.github.picocrypt_ng.Picocrypt-NG.desktop $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop",
     "install -Dm00644 dist/linux/io.github.picocrypt_ng.Picocrypt-NG.metainfo.xml $FLATPAK_DEST/share/metainfo/$FLATPAK_ID.metainfo.xml",
     "install -Dm0644 LICENSE -t $FLATPAK_DEST/share/licenses/$FLATPAK_ID/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Picocrypt-NG/Picocrypt-NG/archive/refs/tags/2.16.tar.gz",
      "sha256": "d7f1ba6e723471715f753d9e49ca5b2705d27716ce4be99abf742228184d1d1d"
     },
     {
      "type": "patch",
      "path": "prefer-x11-default.patch"
     },
     {
      "type": "file",
      "path": "modules.txt",
      "dest": "src/vendor"
     },
     "go-mod-deps.yml"
    ]
   }
  ]
 }
}