{
 "app_id": "dev.budd.Switcheroo",
 "source_url": "https://raw.githubusercontent.com/budde25/switcheroo/main/dev.budd.Switcheroo.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "23.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=all",
  "--filesystem=host-etc"
 ],
 "module_count": 1,
 "fetched_at": "2026-10-05T15:46:14.609417+00:00",
 "manifest": {
  "app-id": "dev.budd.Switcheroo",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "23.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "run.sh",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable",
   "org.freedesktop.Sdk.Extension.llvm16"
  ],
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=all",
   "--filesystem=host-etc"
  ],
  "modules": [
   {
    "name": "switcheroo",
    "buildsystem": "simple",
    "build-commands": [
     "cargo build --release --features gui,notify",
     "install -Dm755 run.sh -t /app/bin",
     "install -Dm755 target/release/switcheroo -t /app/bin",
     "install -Dm644 dev.budd.Switcheroo.desktop -t /app/share/applications",
     "install -Dm644 dev.budd.Switcheroo.png -t /app/share/icons/hicolor/256x256/apps",
     "install -Dm644 dev.budd.Switcheroo.metainfo.xml -t /app/share/metainfo"
    ],
    "sources": [
     {
      "type": "dir",
      "path": "."
     },
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "switcheroo gui -vvv \"$@\""
      ]
     },
     {
      "type": "file",
      "path": "assets/logo/dev.budd.Switcheroo.png"
     },
     {
      "type": "file",
      "path": "assets/linux/dev.budd.Switcheroo.desktop"
     },
     {
      "type": "file",
      "path": "assets/linux/dev.budd.Switcheroo.metainfo.xml"
     }
    ],
    "build-options": {
     "append-path": "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm16/bin",
     "build-args": [
      "--share=network"
     ],
     "env": {
      "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER": "clang",
      "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS": "-C link-arg=-fuse-ld=/usr/lib/sdk/rust-stable/bin/mold",
      "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER": "clang",
      "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUSTFLAGS": "-C link-arg=-fuse-ld=/usr/lib/sdk/rust-stable/bin/mold"
     }
    }
   }
  ],
  "cleanup": [
   "target"
  ]
 }
}