{
 "app_id": "org.fossasia.BadgeMagic",
 "source_url": "https://raw.githubusercontent.com/flathub/org.fossasia.BadgeMagic/master/org.fossasia.BadgeMagic.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=all",
  "--device=if:all:!has-input-device",
  "--device=dri",
  "--device=input",
  "--allow=bluetooth",
  "--system-talk-name=org.bluez"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-28T14:34:15.291252+00:00",
 "manifest": {
  "id": "org.fossasia.BadgeMagic",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm22"
  ],
  "command": "badgemagic",
  "rename-desktop-file": "badgemagic.desktop",
  "rename-icon": "badgemagic",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri",
   "--device-if=all:!has-input-device",
   "--device=input",
   "--allow=bluetooth",
   "--share=network",
   "--system-talk-name=org.bluez"
  ],
  "modules": [
   {
    "name": "BadgeMagic",
    "buildsystem": "simple",
    "build-options": {
     "arch": {
      "x86_64": {
       "env": {
        "BUNDLE_PATH": "build/linux/x64/release/bundle"
       }
      },
      "aarch64": {
       "env": {
        "BUNDLE_PATH": "build/linux/arm64/release/bundle"
       }
      }
     },
     "append-path": "/usr/lib/sdk/llvm22/bin:/var/lib/flutter/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm22/lib",
     "env": {
      "PUB_CACHE": "/run/build/BadgeMagic/.pub-cache"
     }
    },
    "build-commands": [
     "setup-flutter.sh",
     "flutter build linux --release --no-pub",
     "cp -r $BUNDLE_PATH /app/org.fossasia.BadgeMagic",
     "mkdir -p /app/bin && ln -s /app/org.fossasia.BadgeMagic/badgemagic /app/bin/badgemagic",
     "install -D linux/org.fossasia.BadgeMagic.metainfo.xml /app/share/metainfo/org.fossasia.BadgeMagic.metainfo.xml",
     "install -D linux/badgemagic.desktop /app/share/applications/badgemagic.desktop",
     "install -D linux/assets/badgemagic.png /app/share/icons/hicolor/512x512/apps/badgemagic.png"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/fossasia/badgemagic-app.git",
      "commit": "2408aae3ece720d57b697ab2374013f56b801b8e"
     },
     "generated/sources/pubspec.json"
    ],
    "modules": [
     "generated/modules/flutter-sdk-3.47.4.json"
    ]
   }
  ]
 }
}