{
 "app_id": "dev.ibrahimcetin.reins",
 "source_url": "https://raw.githubusercontent.com/flathub/dev.ibrahimcetin.reins/master/dev.ibrahimcetin.reins.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:09:38.285481+00:00",
 "manifest": {
  "id": "dev.ibrahimcetin.reins",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm20"
  ],
  "command": "reins",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri",
   "--share=network"
  ],
  "modules": [
   {
    "name": "reins",
    "buildsystem": "simple",
    "build-options": {
     "arch": {
      "x86_64": {
       "env": {
        "BUNDLE_PATH": "build/linux/x64/release/bundle",
        "LIB_PATH": "/usr/lib/x86_64-linux-gnu"
       }
      },
      "aarch64": {
       "env": {
        "BUNDLE_PATH": "build/linux/arm64/release/bundle",
        "LIB_PATH": "/usr/lib/aarch64-linux-gnu"
       }
      }
     },
     "append-path": "/usr/lib/sdk/llvm20/bin:/var/lib/flutter/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm20/lib",
     "env": {
      "PUB_CACHE": "/run/build/reins/.pub-cache",
      "FLATPAK_DATA_PATH": "linux/flatpak",
      "APP_ICONS_PATH": "macos/Runner/Assets.xcassets/AppIcon.appiconset"
     }
    },
    "build-commands": [
     "setup-flutter.sh -C .",
     "flutter build linux --release --no-pub",
     "install -D $BUNDLE_PATH/reins /app/bin/reins",
     "cp -r $BUNDLE_PATH/lib /app/bin/lib",
     "cp -r $BUNDLE_PATH/data /app/bin/data",
     "ln -s ${LIB_PATH}/libsqlite3.so.0 /app/bin/lib/libsqlite3.so",
     "install -Dm644 ${APP_ICONS_PATH}/app_icon_16.png /app/share/icons/hicolor/16x16/apps/${FLATPAK_ID}.png",
     "install -Dm644 ${APP_ICONS_PATH}/app_icon_32.png /app/share/icons/hicolor/32x32/apps/${FLATPAK_ID}.png",
     "install -Dm644 ${APP_ICONS_PATH}/app_icon_64.png /app/share/icons/hicolor/64x64/apps/${FLATPAK_ID}.png",
     "install -Dm644 ${APP_ICONS_PATH}/app_icon_128.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png",
     "install -Dm644 ${APP_ICONS_PATH}/app_icon_256.png /app/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png",
     "install -Dm644 ${APP_ICONS_PATH}/app_icon_512.png /app/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png",
     "install -Dm644 ${FLATPAK_DATA_PATH}/${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 ${FLATPAK_DATA_PATH}/${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml"
    ],
    "sources": [
     "pubspec-sources.json",
     {
      "type": "git",
      "url": "https://github.com/ibrahimcetin/reins.git",
      "tag": "v1.3.3"
     }
    ],
    "modules": [
     "flutter-sdk-3.35.6.json"
    ]
   }
  ]
 }
}