diff --git a/fluxer_desktop/electron-builder.config.cjs b/fluxer_desktop/electron-builder.config.cjs index 305bd3b..63bbff4 100644 --- a/fluxer_desktop/electron-builder.config.cjs +++ b/fluxer_desktop/electron-builder.config.cjs @@ -1256,11 +1256,38 @@ module.exports = { target: 'tar.gz', arch: targetArchs, }, + { + target: 'flatpak', + arch: targetArchs, + }, ], desktop: { entry: linuxDesktopEntry, }, }, + flatpak: { + runtimeVersion: '23.08', + baseVersion: '23.08', + finishArgs: [ + // Wayland/X11 rendering + '--socket=wayland', + '--socket=x11', + '--share=ipc', + // OpenGL + '--device=dri', + // Camera (native/mac-* equivalents on Linux go through /dev/video*) + '--device=all', + // Audio output + WebRTC screen/mic capture via PipeWire + '--socket=pulseaudio', + '--socket=pipewire', + '--filesystem=home', + '--share=network', + // System notifications + '--talk-name=org.freedesktop.Notifications', + // XDG portals (file chooser, background, global shortcuts -- see native/linux-portals) + '--talk-name=org.freedesktop.portal.Desktop', + ], + }, deb: { packageCategory: 'net', desktop: {