app-id: com.brave.Origin runtime: org.freedesktop.Platform runtime-version: '25.08' sdk: org.freedesktop.Sdk command: brave-origin separate-locales: false finish-args: # Graphics and session - --share=ipc - --socket=wayland - --socket=fallback-x11 - --device=all # Network - --share=network # Audio - --socket=pulseaudio - --filesystem=xdg-run/pipewire-0 # Downloads (every other file goes through XDG portals) - --filesystem=xdg-download # Desktop integration - --talk-name=org.freedesktop.Notifications - --talk-name=org.freedesktop.ScreenSaver - --talk-name=org.freedesktop.FileManager1 - --talk-name=org.kde.StatusNotifierWatcher - --system-talk-name=org.freedesktop.UPower # Passwords: kwallet on KDE, libsecret elsewhere - --talk-name=org.freedesktop.secrets - --talk-name=org.kde.kwalletd5 - --talk-name=org.kde.kwalletd6 # Media playback controls - --own-name=org.mpris.MediaPlayer2.brave.* - --env=TMPDIR=/var/tmp modules: # zypak: redirects Chromium's sandbox to Flatpak's. # Without this Brave does not start inside Flatpak (chrome-sandbox is setuid # and setuid does not work in the container). - name: zypak buildsystem: simple build-commands: - "make -j${FLATPAK_BUILDER_N_JOBS:-4}" - "make install" sources: - type: git url: https://github.com/refi64/zypak.git tag: v2025.09 commit: 693a71c5ffa80ec9c9ce2ae03b1ccc493c698e53 - name: brave-origin buildsystem: simple build-options: no-debuginfo: true strip: false build-commands: # The .deb is an 'ar' archive with data.tar.xz inside - ar x brave-origin.deb - tar -xf data.tar.xz - mkdir -p /app/brave-origin - cp -a opt/brave.com/brave-origin/. /app/brave-origin/ # setuid is useless inside the sandbox; zypak replaces it - rm -f /app/brave-origin/chrome-sandbox - install -Dm755 brave-origin.sh /app/bin/brave-origin - install -Dm644 usr/share/applications/brave-origin.desktop /app/share/applications/com.brave.Origin.desktop - sed -i -e 's|^Exec=/usr/bin/brave-origin-stable|Exec=brave-origin|' -e 's|^Icon=brave-origin$|Icon=com.brave.Origin|' /app/share/applications/com.brave.Origin.desktop - for s in 16 24 32 48 64 128 256; do install -Dm644 /app/brave-origin/product_logo_$s.png /app/share/icons/hicolor/${s}x${s}/apps/com.brave.Origin.png; done - install -Dm644 com.brave.Origin.metainfo.xml /app/share/metainfo/com.brave.Origin.metainfo.xml sources: - type: file only-arches: [x86_64] url: https://brave-browser-apt-release.s3.brave.com/pool/main/b/brave-origin/brave-origin_1.93.134_amd64.deb sha256: 288b8f3c875bcd855dfd1127fd8559d7e09522277cfd569e3fb2d44e106ec532 dest-filename: brave-origin.deb - type: file path: brave-origin.sh - type: file path: com.brave.Origin.metainfo.xml