# Bundles the host-built Wails binary. Default Ren Browser builds use GTK4 + WebKitGTK 6.0, # which matches org.gnome.Platform 50. Then: task linux:flatpak:install | flatpak:repo | flatpak:bundle app-id: io.quad4.renbrowser runtime: org.gnome.Platform runtime-version: "50" sdk: org.gnome.Sdk command: renbrowser finish-args: - --share=network - --share=ipc - --socket=fallback-x11 - --socket=wayland - --socket=pulseaudio - --device=dri - --filesystem=xdg-documents - --filesystem=xdg-download - --filesystem=xdg-config/io.quad4.renbrowser:create # Wails registers GtkApplication as org.wails.ren_browser (from "Ren Browser"). - --own-name=org.wails.ren_browser # Wails single-instance lock (UniqueID = brand.BundleID) owns this name on the # session bus. Without it, RequestName fails and the app exits silently. - --own-name=org.wails_app_io_quad4_renbrowser.SingleInstance - --talk-name=org.freedesktop.portal.Desktop - --talk-name=org.freedesktop.portal.FileChooser - --talk-name=org.freedesktop.portal.OpenURI # Disable WebKit's *inner* sandbox (the outer Flatpak sandbox still applies). # Required on GNOME 50 / glibc 2.42+ where WebKit's bwrap launcher fails # resolving /proc/self/fd/N for glibc's anonymous memfd-backed ld-so-conf, # causing launch crashes (readPIDFromPeer / Can't find source path). # Remove once WebKitGTK's BubblewrapLauncher migrates path-based binds to --bind-fd. - --env=WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1 modules: - name: renbrowser buildsystem: simple build-commands: - install -Dm755 renbrowser -t /app/bin/ - install -Dm644 io.quad4.renbrowser.desktop /app/share/applications/io.quad4.renbrowser.desktop - install -Dm644 io.quad4.renbrowser.metainfo.xml /app/share/metainfo/io.quad4.renbrowser.metainfo.xml - install -Dm644 io.quad4.renbrowser-64.png /app/share/icons/hicolor/64x64/apps/io.quad4.renbrowser.png - install -Dm644 io.quad4.renbrowser-128.png /app/share/icons/hicolor/128x128/apps/io.quad4.renbrowser.png - install -Dm644 io.quad4.renbrowser-256.png /app/share/icons/hicolor/256x256/apps/io.quad4.renbrowser.png sources: - type: dir path: ../build/flatpak/staging