59ff86d30f6ed996709ec9078491c53325cecaf3
GitHub /releases/download/ URLs return a 302 redirect to release-assets.githubusercontent.com with a 5-minute signed JWT. When an intermediate HTTP cache/proxy caches that 302 response past the JWT expiration (ignoring Cache-Control: no-cache), curl immediately fails with exit code 22 (HTTP 618 jwt:expired). - Append a unique cache-busting query parameter per attempt in download_if_missing() so each request receives a fresh 302 redirect and unexpired JWT - Add retry logic with backoff, explicit timeouts, and atomic temp-file writes so transient download failures do not break CI or leave partial binaries behind - Log platform/binary name (e.g. tg5040/minui-list) for clearer CI logs Fixes #3
RomM Companion for NextUI
A dedicated NextUI .pak fork of RomM Companion built in Rust for Linux handhelds running LoveRetro/NextUI — including the TrimUI Brick (tg5040), TrimUI Smart Pro (tg5040), and TrimUI Smart Pro S (tg5050).
Features
- Native NextUI D-Pad Menu (
launch.shusingminui-list&minui-presenter) - Phone / PC Web Setup Server (
http://<handheld-ip>:8765) — pair your handheld with RomM 5.1.0 from your phone without typing URLs or tokens on a D-pad! - NextUI SD Card Auto-Discovery
- Automatically scans
/Roms/* (<TAG>)/and/Saves/<TAG>/ - Maps NextUI tags (
GB,GBC,GBA,FC,SFC,N64,NDS,PS,PSP,MD,SMS,GG,DC,PCE,NGP,WSC,FBN, etc.) to RomM platform slugs - Supports both NextUI save formats:
- MinUI double-extension style (
Game.gba.sav,Game.gba.state0) - RetroArch style (
Game.srm,Game.state.0)
- MinUI double-extension style (
- Zips folder-per-game saves (such as
/Saves/PSP/PSP/SAVEDATA/*) automatically
- Automatically scans
- RomM 5.1.0 Two-Way Save Sync & Save States
- Uses
/api/sync/negotiate,/api/saves,/api/saves/{id}/downloaded,/api/sync/sessions/{id}/complete, and/api/states - Creates timestamped backups on your SD card (
/.userdata/shared/romm-companion/backups/) before overwriting any local save - Resolve conflicts either directly on the handheld or from your phone
- Uses
- On-Device ROM Downloader
- Browse your RomM platforms & ROMs on the handheld and download directly into the matching
/Roms/<System> (<TAG>)/folder!
- Browse your RomM platforms & ROMs on the handheld and download directly into the matching
Building the .pak for TrimUI (tg5040 / tg5050)
Both tg5040 and tg5050 use ARM64 (aarch64) Linux, so a single static aarch64-unknown-linux-musl binary works on all of them:
# Recommended on macOS: install zig + cargo-zigbuild once
brew install zig
export PATH="$HOME/.cargo/bin:$PATH"
cargo install cargo-zigbuild
# Build the ready-to-copy Pak
./build-pak.sh
Copy dist/RomM Companion.pak/ to your NextUI SD card:
- TrimUI Brick / TrimUI Smart Pro:
/Tools/tg5040/RomM Companion.pak/ - TrimUI Smart Pro S:
/Tools/tg5050/RomM Companion.pak/
Note: NextUI includes
minui-listandminui-presenter(or you can place theirtg5040/tg5050binaries insideRomM Companion.pak/bin/). Ifminui-listis absent,launch.shfalls back to running an immediate sync.
Local Testing on macOS / Linux
export PATH="$HOME/.cargo/bin:$PATH"
cargo test
# Test the phone/PC web setup UI locally against a mock SD card folder:
SDCARD_PATH=/tmp/mock-nextui cargo run -- web-setup --port 8765
Languages
Rust
89.9%
Shell
10.1%