{
 "app_id": "org.openpatch.classi",
 "source_url": "https://raw.githubusercontent.com/openpatch/classi/main/packaging/flatpak/org.openpatch.classi.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--share=network",
  "--talk-name=org.freedesktop.secrets",
  "--filesystem=xdg-documents"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-21T19:41:27.613439+00:00",
 "manifest": {
  "app-id": "org.openpatch.classi",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "classi",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm20"
  ],
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--share=network",
   "--talk-name=org.freedesktop.secrets",
   "--filesystem=xdg-documents"
  ],
  "modules": [
   {
    "name": "classi",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm20/bin:/run/build/classi/flutter/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm20/lib",
     "env": {
      "PUB_CACHE": "/run/build/classi/.pub-cache"
     },
     "build-args": [
      "--share=network"
     ]
    },
    "build-commands": [
     "mkdir -p third_party/sqlite3mc",
     "cp -a sqlite3mc/. third_party/sqlite3mc/",
     {
      "grep -q '^      source": "sqlite3mc$' pubspec.yaml"
     },
     "sed -i 's|^      source: sqlite3mc$|      source: source\\n      path: third_party/sqlite3mc/sqlite3mc_amalgamation.c|' pubspec.yaml",
     "flutter config --no-analytics --enable-linux-desktop",
     "flutter pub get",
     "flutter build linux --release --dart-define=CLASSI_DISABLE_SELF_UPDATE=true",
     "mkdir -p /app/classi /app/bin",
     "cp -a build/linux/*/release/bundle/. /app/classi/",
     "ln -sf /app/classi/classi /app/bin/classi",
     "install -Dm644 linux/org.openpatch.classi.desktop /app/share/applications/org.openpatch.classi.desktop",
     "sed -i -e 's|^Icon=.*|Icon=org.openpatch.classi|' -e 's|^Exec=.*|Exec=classi|' -e '/^X-AppImage-/d' /app/share/applications/org.openpatch.classi.desktop",
     "install -Dm644 linux/packaging/org.openpatch.classi.metainfo.xml /app/share/metainfo/org.openpatch.classi.metainfo.xml",
     "install -Dm644 fastlane/metadata/android/en-US/images/icon.png /app/share/icons/hicolor/512x512/apps/org.openpatch.classi.png",
     "install -Dm644 LICENSE /app/share/licenses/org.openpatch.classi/LICENSE"
    ],
    "sources": [
     {
      "type": "dir",
      "path": "../..",
      "skip": [
       "build",
       "dist",
       ".dart_tool",
       ".git",
       "third_party"
      ]
     },
     {
      "type": "archive",
      "archive-type": "zip",
      "url": "https://github.com/utelle/SQLite3MultipleCiphers/releases/download/v2.5.0/sqlite3mc-2.5.0-sqlite-3.53.4-amalgamation.zip",
      "sha256": "cd3a598b667dea206b6c5319d4ecb9d687ee40565f9fd2ba280d0c2f93790f58",
      "dest": "sqlite3mc"
     },
     {
      "type": "git",
      "url": "https://github.com/flutter/flutter.git",
      "tag": "3.41.7",
      "dest": "flutter"
     }
    ]
   }
  ]
 }
}