{
 "app_id": "com.proton.drive",
 "source_url": "https://raw.githubusercontent.com/DonnieDice/protondrive-linux/main/packaging/com.proton.drive.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--device=dri",
  "--filesystem=xdg-download",
  "--filesystem=xdg-documents",
  "--talk-name=org.freedesktop.secrets",
  "--talk-name=org.freedesktop.Notifications"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-20T12:55:09.707506+00:00",
 "manifest": {
  "app-id": "com.proton.drive",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node22",
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "proton-drive",
  "finish-args": [
   "--share=network",
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--device=dri",
   "--filesystem=xdg-download",
   "--filesystem=xdg-documents",
   "--talk-name=org.freedesktop.secrets",
   "--talk-name=org.freedesktop.Notifications"
  ],
  "modules": [
   {
    "name": "proton-drive",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/DonnieDice/protondrive-linux.git",
      "commit": "PLACEHOLDER"
     },
     {
      "type": "archive",
      "url": "https://github.com/ProtonMail/WebClients/archive/PLACEHOLDER_COMMIT.tar.gz",
      "sha256": "PLACEHOLDER_SHA256",
      "dest": "WebClients"
     }
    ],
    "build-commands": [
     ". /usr/lib/sdk/node22/enable.sh",
     ". /usr/lib/sdk/rust-stable/enable.sh",
     "rm -rf WebClients && ln -sf \"WebClients-PLACEHOLDER_COMMIT\" WebClients",
     "./scripts/build-webclients.sh",
     "npm install",
     "cd src-tauri && cargo build --release && cd ..",
     "install -Dm755 src-tauri/target/release/proton-drive /app/bin/proton-drive-bin",
     "cat > /app/bin/proton-drive << 'EOF'\n#!/bin/bash\nexport WEBKIT_DISABLE_DMABUF_RENDERER=1\nexport WEBKIT_DISABLE_COMPOSITING_MODE=1\nexport WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1\nexport GDK_GL=disable\nexec /app/bin/proton-drive-bin \"$@\"\nEOF\nchmod +x /app/bin/proton-drive\n",
     "install -Dm644 src-tauri/linux/proton-drive.desktop /app/share/applications/com.proton.drive.desktop",
     "sed -i 's/Icon=proton-drive/Icon=com.proton.drive/' /app/share/applications/com.proton.drive.desktop",
     "install -Dm644 packaging/com.proton.drive.metainfo.xml /app/share/metainfo/com.proton.drive.metainfo.xml",
     "install -Dm644 src-tauri/icons/32x32.png /app/share/icons/hicolor/32x32/apps/com.proton.drive.png",
     "install -Dm644 src-tauri/icons/128x128.png /app/share/icons/hicolor/128x128/apps/com.proton.drive.png",
     "install -Dm644 src-tauri/icons/128x128@2x.png /app/share/icons/hicolor/256x256/apps/com.proton.drive.png",
     "install -Dm644 src-tauri/icons/proton-drive.svg /app/share/icons/hicolor/scalable/apps/com.proton.drive.svg"
    ]
   }
  ]
 }
}