{
    "id": "com.example.App",
    "runtime": "org.gnome.Platform",
    "runtime-version": "50",
    "sdk": "org.gnome.Sdk",
    "sdk-extensions": [
        "org.freedesktop.Sdk.Extension.rust-stable",
        "org.freedesktop.Sdk.Extension.node20"
    ],
    "command": "example-app",
    "build-options": {
        "append-path": "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/node20/bin",
        "env": {
            "CARGO_HOME": "/run/build/example-app/cargo"
        }
    },
    "finish-args": [
        "--share=ipc",
        "--socket=wayland",
        "--socket=fallback-x11",
        "--device=dri"
    ],
    "modules": [
        {
            "name": "example-app",
            "buildsystem": "simple",
            "build-commands": [
                "npm ci --offline",
                "cargo --offline build --release",
                "install -Dm755 src-tauri/target/release/example-app -t /app/bin/"
            ],
            "sources": [
                {
                    "type": "git",
                    "url": "https://github.com/example/app.git",
                    "tag": "v1.0.0",
                    "commit": 0
                },
                "cargo-sources.json",
                "node-sources.json"
            ]
        }
    ]
}
