{
 "app_id": "info.portfolio_performance.PortfolioPerformance",
 "source_url": "https://raw.githubusercontent.com/flathub/info.portfolio_performance.PortfolioPerformance/master/info.portfolio_performance.PortfolioPerformance.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "51",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=x11",
  "--device=dri",
  "--filesystem=home"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-21T13:02:24.375293+00:00",
 "manifest": {
  "app-id": "info.portfolio_performance.PortfolioPerformance",
  "runtime": "org.gnome.Platform",
  "runtime-version": "51",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk21"
  ],
  "command": "PortfolioPerformance",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--share=network",
   "--filesystem=home",
   "--device=dri",
   "--env=PATH=/app/bin:/app/jre/bin:/usr/bin"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/openjdk21/bin"
  },
  "modules": [
   {
    "name": "openjdk",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/openjdk21/install.sh"
    ]
   },
   {
    "name": "PortfolioPerformance",
    "buildsystem": "simple",
    "build-options": {
     "no-debuginfo": true
    },
    "build-commands": [
     "unzip plugins/name.abuchen.portfolio.ui_*.jar 'icons/*'",
     "install -Dm644 icons/pp_16.png /app/share/icons/hicolor/16x16/apps/${FLATPAK_ID}.png",
     "install -Dm644 icons/pp_48.png /app/share/icons/hicolor/48x48/apps/${FLATPAK_ID}.png",
     "install -Dm644 icons/pp_256.png /app/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png",
     "install -Dm644 icons/pp_512.png /app/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png",
     "install -m644 -Dt /app/share/metainfo metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -m644 -Dt /app/share/applications ${FLATPAK_ID}.desktop",
     "rm -rf icons metainfo ${FLATPAK_ID}.desktop",
     "sed -rie \"s|(osgi.instance.area.default=).*\\$|\\\\1@user.home/.var/app/${FLATPAK_ID}/config/workspace|\" configuration/config.ini",
     "echo \"osgi.configuration.area=@user.home/.var/app/${FLATPAK_ID}/config/configuration\" >> configuration/config.ini",
     "echo \"osgi.clean=true\" >> configuration/config.ini",
     "echo \"name.abuchen.portfolio.in-app-update=disable\" >> configuration/config.ini",
     "mkdir -p /app/portfolio /app/bin",
     "mv * /app/portfolio",
     "ln -s /app/portfolio/PortfolioPerformance /app/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/portfolio-performance/portfolio/releases/download/0.87.0/PortfolioPerformance-0.87.0-linux.gtk.x86_64.tar.gz",
      "sha256": "1c280c73cc3bad3daf90cd4f825b11f02680393aa97bf28c660f74bc2f91e792",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/portfolio-performance/portfolio/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name==\"PortfolioPerformance-\" + $version + \"-linux.gtk.x86_64.tar.gz\") | .browser_download_url"
      }
     },
     {
      "type": "archive",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/portfolio-performance/portfolio/releases/download/0.87.0/PortfolioPerformance-0.87.0-linux.gtk.aarch64.tar.gz",
      "sha256": "559de6a8d171857412d82b773f4c5cce1623785029922f4c0fff42246f31b6c5",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/portfolio-performance/portfolio/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name==\"PortfolioPerformance-\" + $version + \"-linux.gtk.aarch64.tar.gz\") | .browser_download_url"
      }
     },
     {
      "type": "file",
      "path": "info.portfolio_performance.PortfolioPerformance.desktop"
     }
    ]
   }
  ]
 }
}