{
 "app_id": "io.github.SlobCoder.qr_studio",
 "source_url": "https://raw.githubusercontent.com/SlobCoder/qr_studio/main/flatpak/io.github.SlobCoder.qr_studio.yaml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--share=ipc",
  "--share=network",
  "--talk-name=org.freedesktop.portal.Desktop",
  "--filesystem=xdg-download",
  "--filesystem=xdg-pictures",
  "--filesystem=home:ro",
  "--env=GTK_DATA_PREFIX=/app",
  "--filesystem=xdg-config/gtk-3.0:ro",
  "--filesystem=xdg-config/gtk-4.0:ro",
  "--filesystem=xdg-data/themes:ro"
 ],
 "module_count": 7,
 "fetched_at": "2026-10-05T15:58:59.479520+00:00",
 "manifest": {
  "app-id": "io.github.SlobCoder.qr_studio",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "qr_studio",
  "build-options": {
   "env": {
    "CARGO_HOME": "/run/build/qr_studio/cargo",
    "RUST_BACKTRACE": "1"
   }
  },
  "appstream-compose": false,
  "finish-args": [
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--talk-name=org.freedesktop.portal.Desktop",
   "--filesystem=xdg-download",
   "--filesystem=xdg-pictures",
   "--filesystem=home:ro",
   "--env=GTK_DATA_PREFIX=/app",
   "--filesystem=xdg-config/gtk-3.0:ro",
   "--filesystem=xdg-config/gtk-4.0:ro",
   "--filesystem=xdg-data/themes:ro"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/pkgconfig",
   "/share/gtk-doc",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "modules": [
   {
    "name": "rust",
    "buildsystem": "simple",
    "build-commands": [
     "./install.sh --prefix=${FLATPAK_DEST} --disable-ldconfig --verbose",
     "cd ${FLATPAK_DEST}/lib && tar czf ${FLATPAK_DEST}/rust-libs.tar.gz libLLVM* librustc* rustlib",
     "rm -rf ${FLATPAK_DEST}/lib/libLLVM* ${FLATPAK_DEST}/lib/librustc* ${FLATPAK_DEST}/lib/rustlib"
    ],
    "cleanup": [
     "/bin/cargo",
     "/bin/rust*",
     "/lib/libLLVM*",
     "/lib/librustc*",
     "/lib/rustlib",
     "/share/doc",
     "/share/man",
     "/etc/bash_completion.d",
     "/rust-libs.tar.gz"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://static.rust-lang.org/dist/2026-04-16/rust-1.95.0-x86_64-unknown-linux-gnu.tar.xz",
      "sha256": "2e0338f18ecbaa4a0f631b9e80e8b8e26bb6fe77dd5454fba8a70cf96c1e84a1"
     }
    ]
   },
   {
    "name": "abseil-cpp",
    "buildsystem": "cmake",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_INSTALL_LIBDIR=lib",
     "-DBUILD_SHARED_LIBS=ON",
     "-DABSL_BUILD_TESTING=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/abseil/abseil-cpp/releases/download/20240722.0/abseil-cpp-20240722.0.tar.gz",
      "sha256": "f50e5ac311a81382da7fa75b97310e4b9006474f9560ac46f54a9967f07d4ae3"
     }
    ]
   },
   {
    "name": "protobuf",
    "buildsystem": "cmake",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_INSTALL_LIBDIR=lib",
     "-DBUILD_SHARED_LIBS=ON",
     "-Dprotobuf_BUILD_TESTS=OFF",
     "-Dprotobuf_BUILD_EXAMPLES=OFF",
     "-Dprotobuf_ABSL_PROVIDER=package"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/protocolbuffers/protobuf/releases/download/v29.5/protobuf-29.5.tar.gz",
      "sha256": "a191d2afdd75997ba59f62019425016703daed356a9d92f7425f4741439ae544"
     }
    ],
    "cleanup": [
     "/bin",
     "/lib/cmake"
    ]
   },
   {
    "name": "protobuf-c",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/protobuf-c/protobuf-c/releases/download/v1.5.2/protobuf-c-1.5.2.tar.gz",
      "sha256": "e2c86271873a79c92b58fef7ebf8de1aa0df4738347a8bd5d4e65a80a16d0d24"
     }
    ],
    "cleanup": [
     "/bin",
     "/share/doc"
    ]
   },
   {
    "name": "libshumate",
    "buildsystem": "meson",
    "config-opts": [
     "-Dgtk_doc=false",
     "-Ddemos=false",
     "-Dvapi=false",
     "-Dvector_renderer=true",
     "--libdir=lib"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/libshumate/1.5/libshumate-1.5.3.tar.xz",
      "sha256": "35f013b25391856e1b5c3d4409a5c4a640c6ccb5f5296ff982ec7bed39f56d4c"
     }
    ],
    "cleanup": [
     "/bin"
    ]
   },
   {
    "name": "adw-gtk3",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p ${FLATPAK_DEST}/share/themes",
     "cp -r adw-gtk3 ${FLATPAK_DEST}/share/themes/",
     "cp -r adw-gtk3-dark ${FLATPAK_DEST}/share/themes/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/lassekongo83/adw-gtk3/releases/download/v6.5/adw-gtk3v6.5.tar.xz",
      "sha256": "a81780fadfc432be0fc3d89c4ebb41aa28e4f032d42c36f9789c57dd10cfa41c",
      "strip-components": 0
     }
    ]
   },
   {
    "name": "qr_studio",
    "buildsystem": "simple",
    "build-commands": [
     "tar xzf ${FLATPAK_DEST}/rust-libs.tar.gz -C ${FLATPAK_DEST}/lib",
     "rm -f ${FLATPAK_DEST}/rust-libs.tar.gz",
     "mkdir -p .cargo",
     "cat > .cargo/config.toml << 'CARGOEOF'\n[source.vendored-sources]\ndirectory = \"cargo/vendor\"\n\n[source.crates-io]\nreplace-with = \"vendored-sources\"\nCARGOEOF\n",
     "cargo --offline build --release --verbose",
     "install -Dm755 target/release/qr_studio ${FLATPAK_DEST}/bin/qr_studio",
     "install -Dm644 data/io.github.SlobCoder.qr_studio.desktop ${FLATPAK_DEST}/share/applications/io.github.SlobCoder.qr_studio.desktop",
     "install -Dm644 data/io.github.SlobCoder.qr_studio.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/io.github.SlobCoder.qr_studio.svg",
     "install -Dm644 data/io.github.SlobCoder.qr_studio.gschema.xml ${FLATPAK_DEST}/share/glib-2.0/schemas/io.github.SlobCoder.qr_studio.gschema.xml",
     "glib-compile-schemas ${FLATPAK_DEST}/share/glib-2.0/schemas",
     "install -Dm644 flatpak/io.github.SlobCoder.qr_studio.metainfo.xml ${FLATPAK_DEST}/share/metainfo/io.github.SlobCoder.qr_studio.metainfo.xml",
     "mkdir -p ${FLATPAK_DEST}/share/qr_studio/flags",
     "install -Dm644 flags/*.svg ${FLATPAK_DEST}/share/qr_studio/flags/",
     "rm -rf ${FLATPAK_DEST}/lib/libLLVM* ${FLATPAK_DEST}/lib/librustc* ${FLATPAK_DEST}/lib/rustlib",
     "rm -rf ${FLATPAK_DEST}/bin/rust* ${FLATPAK_DEST}/bin/cargo"
    ],
    "sources": [
     {
      "type": "dir",
      "path": ".."
     },
     "cargo-sources.json"
    ]
   }
  ]
 }
}