Xbox Cloud Gaming app for PS5 Homebrew
C
docs: update AGENTS.md and ps5-console-testing skill from v0.9.2 learnings
Rafael Abud Ferreira8dbcf061678b
diff --git a/.agents/skills/ps5-console-testing/SKILL.md b/.agents/skills/ps5-console-testing/SKILL.mdindex bd757c1..ed33ed7 100644--- a/.agents/skills/ps5-console-testing/SKILL.md+++ b/.agents/skills/ps5-console-testing/SKILL.md@@ -62,6 +62,11 @@ The application supports automated scripted actions configured via `/data/homebr```### Common Autoplay Commands:+- `AUTOTEST 30 gamesettingstest`: Navigates to game details, opens Game Settings via Options button, tests d-pad and custom overrides, and captures:+ - `detail.ppm`: Details screen with Options button hint.+ - `game_settings.ppm`: Default Game Settings modal.+ - `game_settings_custom.ppm`: Modified per-game profile modal.+ - `detail_after.ppm`: Details screen after saving and closing.- `GRID 30 gridtest`: Navigates down into the expanded All Games grid, performs D-Pad navigation, and captures:- `ui.ppm`: Initial home screen UI snapshot.- `grid1.ppm`: Expanded grid visible state.@@ -71,6 +76,12 @@ The application supports automated scripted actions configured via `/data/homebr- `AUTOTEST 30 librarytest`: Navigates to Library tab and dumps `library.ppm`.- `AUTOTEST 30 settingstest`: Navigates to Settings tab and dumps `settings.ppm`.+> [!IMPORTANT]+> Always use `AUTOTEST` as the title parameter for UI-only tests (such as `gamesettingstest`, `librarytest`, `settingstest`). Using arbitrary title strings can cause `worker.cpp` to attempt starting a cloud stream session concurrently with your UI test.++> [!NOTE]+> The PS5 resident FTP server (`ftpsrv` on port 2121) does not support `NLST` (`ftp.nlst()` raises `502 Command not recognized`). Always specify explicit file lists for deletion/download and catch `(error_perm, error_reply)` as `DELE` may reply with `226`.+### Uploading `autoplay.txt` and Clearing Old Screenshots via Python:```bash@@ -88,7 +99,11 @@ ftp.login()ftp.cwd(remote_dir)# Clean up previous dumps-ppm_files = ["ui.ppm", "grid1.ppm", "grid2.ppm", "grid_back.ppm", "launch.ppm", "library.ppm", "settings.ppm", "error.ppm"]+ppm_files = [+ "ui.ppm", "grid1.ppm", "grid2.ppm", "grid_back.ppm", "launch.ppm",+ "library.ppm", "settings.ppm", "error.ppm",+ "detail.ppm", "game_settings.ppm", "game_settings_custom.ppm", "detail_after.ppm"+]for f in ppm_files:try:ftp.sendcmd(f"DELE {f}")@@ -96,7 +111,7 @@ for f in ppm_files:pass# Upload new test directive-ftp.storbinary("STOR autoplay.txt", io.BytesIO(b"GRID 30 gridtest\n"))+ftp.storbinary("STOR autoplay.txt", io.BytesIO(b"AUTOTEST 30 gamesettingstest\n"))ftp.quit()print("Autoplay test configured successfully.")PY@@ -185,3 +200,48 @@ If ready for the user, restart the application in normal mode:PS5_HOST=192.168.15.17 python3 ../PS5_Vulkan/tools/ps5_console.py kill PPSA99810PS5_HOST=192.168.15.17 python3 ../PS5_Vulkan/tools/ps5_console.py launch PPSA99810```++---++## 8. Official Signed Release Workflow++To build, verify, sign, and publish an official release (`vX.Y.Z`):++1. **Update Versions**:+ - `CMakeLists.txt`: `project(xcloud_ps5 VERSION X.Y.Z LANGUAGES C CXX)`+ - `ps5/sce_sys/param.json`: `"contentVersion": "0X.YZZ.000"` (e.g. `00.902.000` for version `0.9.2`)+ - `ROADMAP.md`: update completed features with the new version tag.++2. **Git Branch & PR Flow**:+ - Create and switch to release branch: `git checkout -b release/vX.Y.Z`+ - Stage and commit with descriptive release message: `git commit -m "vX.Y.Z: ..."`+ - Push branch: `git push -u origin release/vX.Y.Z`+ - Create PR: `gh pr create --base main --head release/vX.Y.Z --title "Release vX.Y.Z" --body "..."`+ - Merge PR: `gh pr merge <PR_NUMBER> --merge`+ - Return to main and sync: `git checkout main && git pull origin main`++3. **Execute Automated Release Script**:+ - Requires private release signing key at `~/.config/psbox-release/signing-key.pem`+ ```bash+ tools/release.sh X.Y.Z+ ```+ This script performs:+ - Git cleanliness and uncommitted changes check.+ - Version match checks across `CMakeLists.txt` and `param.json`.+ - Security audit (ensures no tokens or private cache files are included in the build).+ - Building and packaging without developer account data (`XC_INCLUDE_ACCOUNT` disabled).+ - Packaging `PPSA99810.zip`, computing `PPSA99810.zip.sha256`.+ - Cryptographic signature `PPSA99810.zip.sig` with the project's RSA key (verified against `updater.cpp`).++4. **Publish to GitHub Releases**:+ - Prepare release notes (`notes.md`)+ ```bash+ gh release create vX.Y.Z \+ "build-ps5/release-vX.Y.Z/PPSA99810.zip" \+ "build-ps5/release-vX.Y.Z/PPSA99810.zip.sha256" \+ "build-ps5/release-vX.Y.Z/PPSA99810.zip.sig" \+ --target $(git rev-parse HEAD) \+ --title "PSBox Cloud Gaming vX.Y.Z" \+ --notes-file notes.md+ ```+diff --git a/AGENTS.md b/AGENTS.mdindex 35a8dd4..0681617 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -31,7 +31,8 @@ Para qualquer alteração em arquivos de interface (`src/app_ui.cpp`, `src/app/aPS5_HOST=192.168.15.17 ./tools/ps5/deploy.sh build-ps5```4. **Configurar teste autônomo (`autoplay.txt`)**:- - Enviar `/data/homebrew/PPSA99810/autoplay.txt` via FTP (ex: `GRID 30 gridtest` para testar a grade de jogos, ou comando apropriado para a tela modificada).+ - Enviar `/data/homebrew/PPSA99810/autoplay.txt` via FTP.+ - **Regra obrigatória para testes de UI**: Sempre utilize o prefixo `AUTOTEST` (ex: `AUTOTEST 30 gamesettingstest`, `AUTOTEST 30 librarytest`, etc.) para testes de telas/modais sem streaming. NUNCA use nomes arbitrários no primeiro argumento que possam ser interpretados como IDs de jogos pelo loop de streaming (`worker.cpp`).- Remover capturas `.ppm` antigas antes de iniciar.5. **Iniciar a aplicação remotamente**:```bash