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' #!/bin/bash export WEBKIT_DISABLE_DMABUF_RENDERER=1 export WEBKIT_DISABLE_COMPOSITING_MODE=1 export WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1 export GDK_GL=disable exec /app/bin/proton-drive-bin "$@" EOF chmod +x /app/bin/proton-drive - 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