Merge branch 'feat/flatpak'

This commit is contained in:
Guillaume Meunier
2024-08-31 13:39:24 +02:00
12 changed files with 263 additions and 124 deletions
+9
View File
@@ -0,0 +1,9 @@
[Desktop Entry]
Name=WiVRn server
Comment=Play your PC VR games on a standalone headset
GenericName=WiVRn server
Exec=launch-wivrn-server
Icon=io.github.wivrn.wivrn
Type=Application
Categories=ConsoleOnly
Terminal=true
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="console-application">
<id>io.github.wivrn.wivrn</id>
<name>WiVRn server</name>
<metadata_license>FSFAP</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
<summary>Play your PC VR games on a standalone headset</summary>
<description>
<p>WiVRn allows you to run your VR games from your PC and play them from a standalone headset.</p>
<p>You will need to install the WiVRn client on your headset from the APK on Github.</p>
<p>Supported headsets:</p>
<ul>
<li>Meta Quest 1</li>
<li>Meta Quest 2</li>
<li>Meta Quest 3</li>
<li>Meta Quest Pro</li>
<li>Pico Neo 3</li>
<li>Pico Neo 4</li>
<li>HTC Vive Focus 3</li>
<li>HTC Vive XR Elite</li>
</ul>
<p>Features:</p>
<ul>
<li>Supports OpenXR and OpenVR applications</li>
<li>Controller tracking, hand tracking, eye gaze tracking (if supported by the headset)</li>
<li>Audio streaming and microphone</li>
<li>Video streaming with H264 / HEVC compression</li>
<li>Hardware accelerated compression with VAAPI or NVENC</li>
<li>Software compression with x264</li>
</ul>
</description>
<developer id="io.github.wivrn.wivrn">
<name>Guillaume Meunier, Patrick Nicolas et al</name>
</developer>
<branding>
<color type="primary" scheme_preference="light">#F6F5F5</color>
<color type="primary" scheme_preference="dark">#424242</color>
</branding>
<launchable type="desktop-id">io.github.wivrn.wivrn.desktop</launchable>
<url type="homepage">https://wivrn.github.io</url>
<url type="vcs-browser">https://www.github.com/WiVRn/WiVRn</url>
<url type="bugtracker">https://github.com/WiVRn/WiVRn/issues</url>
<icon type="stock">io.github.wivrn.wivrn</icon>
<provides>
<binary>launch-wivrn-server</binary>
</provides>
<content_rating type="oars-1.1" />
<releases>
<release version="0.18" date="2024-08-13">
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v0.18</url>
<description>
<ul>
<li>The standard APK is now compatible with Pico headsets</li>
<li>Fixes for position on start and reconnect</li>
<li>Support for EXT_eye_gaze_interaction by @galister</li>
<li>Better support for libmonado, now discoverable in manifest</li>
<li>Server can now be distributed as a flatpak</li>
</ul>
</description>
</release>
<release version="0.17" date="2024-07-14">
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v0.17</url>
<description>
<ul>
<li>Add systemd hardening options by @Pandapip1</li>
<li>update monado to 24.0.0 by @galister</li>
<li>Update building doc by @SanyaNya</li>
<li>Multiple tweaks for controller tracking, audio resync</li>
<li>Minor performance improvements</li>
</ul>
</description>
</release>
</releases>
</component>
@@ -1,19 +1,42 @@
id: org.meumeu.wivrn-server
id: io.github.wivrn.wivrn
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: launch-wivrn-server
add-extensions:
org.freedesktop.Platform.VAAPI.Intel:
version: '23.08'
directory: lib/dri
add-ld-path: lib
subdirectories: true
no-autodownload: true
autodelete: true
cleanup-commands:
- mkdir -p ${FLATPAK_DEST}/lib/dri
finish-args:
# X11 + XShm access
- --share=ipc
- --socket=fallback-x11
# Wayland access
- --socket=wayland
# GPU acceleration
- --device=dri
# Needs to talk to the network
- --share=network
# Announce WiVRn via avahi
- --system-talk-name=org.freedesktop.Avahi
# Allow getting the pretty hostname
- --system-talk-name=org.freedesktop.hostname1
# Pipewire
- --filesystem=xdg-run/pipewire-0
# Set the active OpenXR / OpenVR runtime
- --filesystem=xdg-config/openxr:create
- --filesystem=xdg-config/openvr:create
# Let outside application access the WiVRn socket
- --filesystem=xdg-run/wivrn:create
cleanup:
- /lib/pkgconfig
- /share/pkgconfig
- /include
- /share/man
- /share/cmake
- /share/gir-1.0
- /lib/girepository-1.0
- /lib/systemd
- '*.a'
- '*.la'
modules:
- name: libavahi-client
@@ -72,7 +95,9 @@ modules:
- make install
cleanup:
- /share/ffmpeg
- /bin/ffmpeg
- /bin/ffplay
- /bin/ffprobe
sources:
- type: git
url: https://gitlab.com/freedesktop-sdk/mirrors/ffmpeg/ffmpeg.git
@@ -122,6 +147,7 @@ modules:
- -DWIVRN_USE_X264=ON
- -DWIVRN_USE_NVENC=ON
- -DWIVRN_USE_PULSEAUDIO=OFF
- -DWIVRN_USE_GLIB=ON
- -DFETCHCONTENT_FULLY_DISCONNECTED=ON
- -DFETCHCONTENT_BASE_DIR=deps
- -DXRT_IPC_MSG_SOCK_FILENAME=wivrn/comp_ipc
@@ -157,7 +183,7 @@ modules:
- name: launcher
buildsystem: simple
build-commands:
- install -Dm755 launch-wivrn-server.sh ${FLATPAK_DEST}/bin/launch-wivrn-server
- install -Dm755 launch-wivrn-server.sh ${FLATPAK_DEST}/bin/launch-wivrn-server
sources:
- type: script
dest-filename: launch-wivrn-server.sh
@@ -166,46 +192,3 @@ modules:
- sed -ne 's#app-path=\(.*\)#{"runtime":["\1/OpenComposite"],"version":1}#p' /.flatpak-info > $XDG_CONFIG_HOME/openvr/openvrpaths.vrpath
- chmod -w $XDG_CONFIG_HOME/openvr/openvrpaths.vrpath
- wivrn-server
- name: appdata
buildsystem: simple
build-commands:
- install -Dm644 org.meumeu.wivrn-server.appdata.xml -t ${FLATPAK_DEST}/share/appdata
sources:
- type: file
path: org.meumeu.wivrn-server.appdata.xml
cleanup:
- /lib/pkgconfig
- /share/pkgconfig
- /include
- /share/man
- /share/cmake
- /share/gir-1.0
- /lib/girepository-1.0
- /lib/systemd
- '*.a'
- '*.la'
finish-args:
# X11 + XShm access
- --share=ipc
- --socket=fallback-x11
# Wayland access
- --socket=wayland
# GPU acceleration if needed
- --device=dri
# Needs to talk to the network
- --share=network
# Announce WiVRn via avahi
# - --system-talk-name=org.freedesktop.Avahi
# Allow getting the pretty hostname
# - --system-talk-name=org.freedesktop.hostname1
- --socket=system-bus # workaround bug between sd-bus (https://github.com/systemd/systemd/issues/16610) and xdg-dbus-proxy (https://github.com/flatpak/xdg-dbus-proxy/issues/21)
# Pipewire
- --filesystem=xdg-run/pipewire-0
# Set the active OpenXR / OpenVR runtime
- --filesystem=xdg-config/openxr:create
- --filesystem=xdg-config/openvr:create
# Let outside application access the WiVRn socket
- --filesystem=xdg-run/wivrn:create
@@ -1,49 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="console-application">
<id>org.meumeu.wivrn-server</id>
<name>WiVRn server</name>
<metadata_license>FSFAP</metadata_license>
<project_license>GPL-3.0+</project_license>
<summary>The WiVRn server</summary>
<description><p>Server component of the WiVRn OpenXR streaming system</p></description>
<developer id="org.meumeu.wivrn-server">
<name>Guillaume Meunier, Patrick Nicolas et al</name>
</developer>
<!-- <launchable type="desktop-id">org.meumeu.wivrn-server.desktop</launchable> -->
<url type="homepage">https://www.github.org/Meumeu/WiVRn</url>
<provides>
<binary>launch-wivrn-server</binary>
</provides>
<content_rating type="oars-1.1" />
<releases>
<release version="0.18" date="2024-08-13">
<url type="details">https://github.com/Meumeu/WiVRn/releases/tag/v0.18</url>
<description>
<ul>
<li>The standard APK is now compatible with Pico headsets</li>
<li>Fixes for position on start and reconnect</li>
<li>Support for EXT_eye_gaze_interaction by @galister</li>
<li>Better support for libmonado, now discoverable in manifest</li>
<li>Server can now be distributed as a flatpak</li>
</ul>
</description>
</release>
<release version="0.17" date="2024-07-14">
<url type="details">https://github.com/Meumeu/WiVRn/releases/tag/v0.17</url>
<description>
<ul>
<li>Add systemd hardening options by @Pandapip1</li>
<li>update monado to 24.0.0 by @galister</li>
<li>Update building doc by @SanyaNya</li>
<li>Multiple tweaks for controller tracking, audio resync</li>
<li>Minor performance improvements</li>
</ul>
</description>
</release>
</releases>
</component>
-9
View File
@@ -1,9 +0,0 @@
[Desktop Entry]
Name=WiVRn server
Comment=TBD
GenericName=TBD
Exec=launch-wivrn-server
Icon=org.meumeu.wivrn
Type=Application
Categories=ConsoleOnly
Keywords=wivrn;