Xbox Cloud Gaming app for PS5 Homebrew
C
docs: M3 for Linux (CI jobs, the tarball, its notices)
Rafael Abud Ferreira3f46d506896c
diff --git a/README.md b/README.mdindex 033cd68..e4421aa 100644--- a/README.md+++ b/README.md@@ -97,7 +97,15 @@ bash tools/check-platform-boundaries.sh # PS5 calls only in the PS5 backen### Linux (preview)-`psbox` is the app in a window, on SDL3 (3.2 or newer, with its development+**Download:** releases may carry `PSBox-vX.Y.Z-linux-x86_64.tar.gz` (x86-64,+glibc 2.39 or newer: Ubuntu 24.04, Fedora 40, Debian 13 or later; X11 or+Wayland). Unpack it anywhere and run `PSBox/psbox`: SDL3 is bundled in+`PSBox/lib`, nothing else to install. `PSBox/README-linux.txt` covers the+menu entry and the udev rule some systems need for the DualSense's+rumble, triggers, light bar and gyro. Each push's build is also an+artifact (`psbox-linux-x86_64`) of the CI's `linux-app` job.++**From source:** `psbox` is the app in a window, on SDL3 (3.2 or newer, with its developmentfiles: `SDL3-devel` on Fedora, `libsdl3-dev` on Debian / Ubuntu). It isbuilt with the desktop build above whenever CMake finds SDL3(`-DXCLOUD_DESKTOP_APP=ON` to require it, `OFF` to skip it).@@ -113,7 +121,8 @@ beside the executable. Controllers (DualSense, DualShock 4, Xbox, Switch...),keyboard and mouse are supported (a preview: not checked on every pad yet); options the PC can't honour (light bar without aDualSense, 120 Hz, the PS5's upscalers) are hidden. It doesn't updateitself: Settings > Updates opens the release page. See-`docs/multiplatform.md` (M1).+`docs/multiplatform.md` (M1). `tools/desktop/package-linux.sh <build-dir>`+makes and checks the tarball (M3).### PS5 builddiff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.mdindex 94a7c61..4e42233 100644--- a/THIRD_PARTY_NOTICES.md+++ b/THIRD_PARTY_NOTICES.md@@ -46,6 +46,27 @@ the end.| NASM (assembles FFmpeg's x86 SIMD code) | BSD-2-Clause || PS5_Vulkan tooling (`link.sh` recipe, `ps5-native-tool` ELF/FSELF writer, FTP deploy script) | GPL-3.0-or-later |+## The Linux package (`PSBox-*-linux-x86_64.tar.gz`)++`psbox` statically links the same Mbed TLS, libdatachannel (libjuice,+usrsctp, libSRTP, plog), FFmpeg slice, stb and QR Code generator listed+above; the PS5 runtime, the payload SDK, Mesa, FSR 1 and Anime4K are not in+it. Their texts, with this file and `LICENSE`, are in `PSBox/licenses/`;+`FFmpeg-NOTE.txt` there gives FFmpeg's version and configure flags. It+links the system's C and C++ libraries (glibc, libstdc++, libgcc_s)+dynamically, and carries:++| File | Component | License |+| --- | --- | --- |+| `PSBox/lib/libSDL3.so.0` | SDL 3.4 (3.4.18 in CI builds; <https://github.com/libsdl-org/SDL>) | zlib (`licenses/SDL3-LICENSE.txt`) |+| `PSBox/assets/fonts/Inter-*.ttf` | Inter 4.1 | SIL Open Font License 1.1 (`licenses/Inter-OFL.txt`) |+| `PSBox/assets/cacert.pem` | Mozilla CA certificate data | MPL-2.0 |+| `PSBox/psbox.png`, `psbox.desktop` | project artwork and metadata | GPL-3.0-or-later |++SDL3 loads X11, Wayland, libdecor, PulseAudio, PipeWire, ALSA, JACK, dbus+and libusb from the system at run time when present; none of them is+bundled.+## Protocol referencesThe xCloud protocol handling follows the open-source clientsdiff --git a/docs/multiplatform.md b/docs/multiplatform.mdindex 580935b..fe00ada 100644--- a/docs/multiplatform.md+++ b/docs/multiplatform.md@@ -141,7 +141,10 @@ shared code:- **M2, Windows**: cross build with llvm-mingw and the SDL3 mingw package,tests under wine; a Winsock socket layer; atomic writes with`MoveFileExW`; a crash guard on SEH (splitting `crash_guard.cpp`).-- **M3**: CI jobs per platform, packaging, notices for the new libraries.+- **M3, Linux** (done, below): the `linux-app` CI job (SDL3 built from its+ release, the app's self-test), the Linux tarball and its optional signed+ release assets, the notices of what the desktop package carries. The+ Windows half comes with M2.- **Later**: a Vulkan desktop display reusing `gpu.cpp` (FSR, Anime4K),FFmpeg hardware decoding, a desktop updater.@@ -202,6 +205,57 @@ SDL_VIDEO_DRIVER=offscreen SDL_AUDIO_DRIVER=dummy build-desktop/psbox --selftestopened and closed; PNGs in `<dir>`, exit 1 on any failure. No account ornetwork.+## M3: CI and the Linux package++CI (`.github/workflows/ci.yml`), on every push and pull request:++| Job | What |+|----------------|--------------------------------------------------------------------------------------|+| `triage-rules` | the issue triage rules' tests |+| `build` | `tools/check-platform-boundaries.sh`; the SDL-free build (`-DXCLOUD_DESKTOP_APP=OFF`: `psbox-headless`, `xcloud-cli`, `xcloud-tests`) and the unit tests |+| `linux-app` | on ubuntu-24.04 (the package's glibc baseline, 2.39): SDL3 3.4.18 built from its release tarball with every backend loaded at run time (X11, Wayland, PulseAudio, PipeWire, ALSA, JACK...), cached in `~/.cache/xcloud-ps5/sdl3-<ver>`; `-DXCLOUD_DESKTOP_APP=ON`, the unit tests, `psbox --selftest` (offscreen video, dummy audio), `tools/desktop/package-linux.sh`; the tarball (`psbox-linux-x86_64`) and the self-test's screenshots uploaded as artifacts |+| `account-data` | pull requests: no token or private file in the changes |++The PS5 build needs the PS5_Vulkan toolchain, so it isn't in CI:+`tools/release.sh` builds it.++The package: `cmake/desktop_package.cmake` (install rules and CPack, Linux+desktop builds only) and `tools/desktop/package-linux.sh`:++```bash+tools/desktop/package-linux.sh build-desktop # -> build-desktop/pkg/PSBox-v<ver>-dev-linux-x86_64.tar.gz+CMAKE_PREFIX_PATH=~/sdl3 tools/desktop/package-linux.sh build-linux /tmp/out # an SDL3 of your own+```++It configures (`XCLOUD_DESKTOP_APP=ON`; a new build folder gets Ninja,+RelWithDebInfo and clang), builds, packs with CPack and checks the tarball:+nothing private (`account.json`, `autoplay.txt`, logs, captures, keys,+settings/library caches), every file below present, `psbox`'s RUNPATH+`$ORIGIN/lib` and `NEEDED libSDL3.so.0` resolved to the bundled copy, no+debug sections, and `psbox --selftest` run from the unpacked folder with+`LD_LIBRARY_PATH` unset (and nothing written into it). `XC_VERSION` names+it (default `v<version>-dev`; `tools/release.sh --linux` passes `vX.Y.Z`).++```+PSBox/psbox stripped (--strip-debug); its debug info in symbols/<version>/psbox.debug+PSBox/lib/libSDL3.so.0 the SDL3 it was built with+PSBox/assets/ fonts and certificates (the repository's assets/, nothing from a data folder)+PSBox/psbox.desktop menu entry (Exec= to point at the folder: README-linux.txt)+PSBox/psbox.png 256 px icon, drawn by xcloud-cli render-icon+PSBox/README-linux.txt running it, the data folder, hidraw / udev for DualSense features+PSBox/licenses/ LICENSE, THIRD_PARTY_NOTICES.md, Mbed TLS, libdatachannel, usrsctp,+ libSRTP, plog, FFmpeg (LGPL-2.1 + FFmpeg-NOTE.txt: the configure+ flags), stb, Inter (OFL), SDL3 (zlib)+```++The release: `tools/release.sh <X.Y.Z> --linux` adds+`PSBox-vX.Y.Z-linux-x86_64.tar.gz` with its `.sha256` and a `.sig` from the+same key as `PPSA99810.zip`. They are optional; the three PS5 assets are+not (`AGENTS.md`, section 6). A tarball built locally needs the glibc of+the machine that built it (the script prints it). The desktop app never+installs an update: with `shell::canSelfUpdate()` false, `checkForUpdate()`+keeps no release to install and Settings > Updates opens the release page.+## Rules for contributors1. No `sce*` call, PS5 SDK header (`<ps5platform/...>`), `XCLOUD_PS5` /