Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
40b8f2b
Catch up to 12.6.33
phantomptr Nov 26, 2026
9d4b88f
FAQ: say where adding your own payload source went
phantomptr Nov 26, 2026
9073f27
Engine tests remove their temp folders, pass or fail
phantomptr Nov 26, 2026
2f5b94b
Desktop tests remove their temp folders, pass or fail
phantomptr Nov 26, 2026
4e9024e
Script and client tests remove their temp folders
phantomptr Nov 26, 2026
c01e7f4
Release and helper scripts remove their temp files at exit
phantomptr Nov 26, 2026
bd4fa45
Check that tests leave nothing in the temp folder
phantomptr Nov 26, 2026
91d08ea
Convert: a reopened page picks up a build that kept running (#954)
phantomptr Nov 26, 2026
3bd036a
Check the copy: no 100% while the PlayGo check still reads the packag…
phantomptr Nov 26, 2026
20fef79
Link installs: "the file at this link changed" only on real evidence
phantomptr Nov 26, 2026
08bbacd
Engine: move files from the PS5 to a saved server
phantomptr Nov 26, 2026
03b1e44
Files: copy or move to a saved server from Move to…
phantomptr Nov 26, 2026
25e83ad
Console page: copy or move to a network share
phantomptr Nov 26, 2026
6d56288
One listing for this computer, saved servers and other consoles
phantomptr Nov 26, 2026
a649eff
Files: two panes on a wide screen (#952)
phantomptr Nov 26, 2026
56338a7
Files two panes: more room for the PS5 side, buttons fit long words
phantomptr Nov 26, 2026
b171b65
Test Files two panes in a browser
phantomptr Nov 26, 2026
794597a
Files two panes: a move is only as safe as its check
phantomptr Nov 26, 2026
dbfebfc
Console page: a move to a share keeps a folder that holds links
phantomptr Nov 26, 2026
0920a90
Engine: a move to a saved server keeps a folder that holds links
phantomptr Nov 26, 2026
bd4b786
Engine: payload sources you add yourself, with download
phantomptr Nov 26, 2026
d8bd7fb
Payloads: Your payload sources, with add, download and send
phantomptr Nov 26, 2026
830e548
Docs: adding your own payload source
phantomptr Nov 26, 2026
dcff4fc
12.6.34 release notes
phantomptr Nov 26, 2026
ee87098
Convert on the PS5: a long error keeps its reason
phantomptr Nov 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 18 additions & 2 deletions .github/workflows/engine-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -328,16 +328,28 @@ jobs:
working-directory: engine
run: cargo build -p ps5upload-unrar

# The tests run with the temp folder pointed at an empty folder of this job's own, and a
# step after them fails if they left anything there: tests that never removed their scratch
# folders once filled a developer's temp folder with 38 GB (scripts/check-test-tmp-leaks.sh).
- name: Empty temp folder for the tests
shell: bash
run: |
mkdir -p "$RUNNER_TEMP/test-tmp"
echo "TEST_TMP=$RUNNER_TEMP/test-tmp" >> "$GITHUB_ENV"

# nextest runs the test binaries side by side (cargo test runs them one at a time, and most
# of these sit in network sleeps); doctests, which nextest does not run, follow separately.
# Timing-sensitive binaries are serialized by engine/.config/nextest.toml.
# Bounded per step: a hung test fails here in minutes instead of holding the job.
# Built first with the usual temp folder: only what the tests leave is checked.
- name: cargo nextest
working-directory: engine
timeout-minutes: 25
env:
RUST_BACKTRACE: 1
run: cargo nextest run --profile ci ${{ matrix.select }}
run: |
cargo nextest run --profile ci --no-run ${{ matrix.select }}
TMPDIR="$TEST_TMP" cargo nextest run --profile ci ${{ matrix.select }}

# After the main run and with its exact package set (matrix.select), so nothing recompiles:
# a `cargo test -p ps5upload-engine` here first built the engine a second time. --no-capture
Expand Down Expand Up @@ -401,7 +413,11 @@ jobs:
- name: cargo test --doc
working-directory: engine
timeout-minutes: 10
run: cargo test --doc ${{ matrix.select }}
run: TMPDIR="$TEST_TMP" cargo test --doc ${{ matrix.select }}

- name: Tests left nothing in the temp folder
shell: bash
run: scripts/check-test-tmp-leaks.sh --check "$TEST_TMP"

# target/tmp is CARGO_TARGET_TMPDIR, test scratch space, not build output. The UFS2 writer
# tests leave sparse images there, one of them 68 GB apparent (lastcg.ffpkg): tar stored it
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,27 @@ What's new in ps5upload, written for humans.

## Unreleased

**Payloads**
- **Your own payload sources are back.** In Payloads, add a GitHub, Gitea or Forgejo project that publishes payload files, and pick the file once (for example `kstuff.elf`). Its card shows the release you have, says when a newer one is out, and has Download, Update and Send to PS5. Nothing happens on its own: it checks only when you open Payloads or press Check, downloads only when you press Download, and before sending shows the file, its release, size and checksum. Only add projects you trust. The built-in list stays a guide with links.

**Files**
- **Two panes on a wide screen (#952).** Turn on Two panes to keep the PS5 on one side and this computer, a saved server or another console on the other, and copy or move between them. Phones and tablets stay as they were.
- **Copy or move from the PS5 to a saved server (#953),** in Move to… and on the console's own page. A move deletes the original only after the copy is checked, and keeps a folder that holds links, which a share can't hold.

**Convert**
- **Closing the page no longer marks a running build "Interrupted" (#954).** The build keeps going; the reopened page picks it up or shows it finished. The queue's next game, and the install after Convert & install, wait until the page is open again, and the page says so.

**Games**
- **Check the copy no longer shows 100% while it still reads the package (#951).** It counts both reads and says which part it is on, and Cancel works in both.

**Upload & Install**
- **"The file at this link changed" only when it really did.** Servers whose copies disagree on dates or tags no longer trip it; a different size or different first bytes still do.

**Under the hood**
- The tests no longer leave folders behind in the system's temp folder (a full run used to leave about 2 GB), and CI checks it. A signing script no longer leaves its key file behind.

## 12.6.33

**Fake PS5 packages**
- **Two ways to play them, explained side by side.** Install the package (on firmware 11.61 to 13.60 with the latest kstuff, which supports fake packages up to 13.60), or mount it with Kraken Mount. Upload & Install, Convert, the hint after a game doesn't start, the Payloads catalog, the FAQ and the website now all say this the same way, and the note is information rather than a warning.

Expand Down
36 changes: 32 additions & 4 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ more depth further down.
Send **elfldr** first (if your setup uses it), then **kstuff**, then
**ShadowMount+**, then **ps5upload**. The **Set up your PS5** wizard does the
last three in this order for you, with the delays the Payloads catalogue
recommends. ps5upload doesn't download payloads: get kstuff and ShadowMount+ from their project
pages (Payloads › Catalog links to them) and choose the files in the wizard. Send them one at a time; the loader takes one file per
recommends. The built-in catalogue only links to payloads: get kstuff and ShadowMount+ from their
project pages (Payloads › Catalog links to them) and choose the files in the wizard. Send them one at a time; the loader takes one file per
connection. After a reboot the payloads are gone, so load them again. Rest mode
can stop them too; the PS5Upload helper usually keeps running through it.

Expand Down Expand Up @@ -559,8 +559,10 @@ something else, and records the send in a history panel so you
can replay it without re-picking the file.

**Q: How do I keep my payloads up to date?**
ps5upload doesn't download payloads. Get a newer release from the payload's project page and send
the file from **Payloads → Send payload**. **Payloads › Catalog › Payload updates** still tells you
For a payload from a project you added as your own payload source, its card says **New version
available** and **Update** downloads it (see *How do I add my own payload source?*). The built-in
catalogue's payloads aren't downloaded by the app: get a newer release from the payload's project
page and send the file from **Payloads → Send payload**. **Payloads › Catalog › Payload updates** still tells you
when one is out: **Check for payload updates** compares each payload saved in the app (copies
earlier versions of the app downloaded) with its latest release, and links to the release page.
A copy an earlier update replaced is kept: **Roll back** puts it back.
Expand All @@ -570,6 +572,32 @@ Manager loads it at boot** if you want it at boot) on a payload, and **Sync with
copies the ones you keep into it when they change and adds the marked ones to its boot list.
Nothing else in its list is changed. Payload Manager has to be running on the PS5 for this.

**Q: How do I add my own payload source (a custom GitHub or Gitea repo)?**
In **Payloads › Catalog**, under **Your payload sources**, press **Add a payload source** and paste
the project's address: `https://github.com/owner/project`, or a Gitea or Forgejo project
(`https://your-server/owner/project`; a server on your home network and its own port is fine).
Only https addresses work, without a user name or password in them. **Show its files** lists the
`.elf` and `.bin` files of the project's newest release: pick the payload once and press **Add
source**. PS5Upload will download and send whatever that project publishes under that name, so
only add projects you trust.

Newer releases are matched by name: the same name apart from its version numbers. If you picked
`kstuff-v1.6.0.elf`, a later `kstuff-v1.7.elf` is the update; a name like `ftpsrv-ps5.elf` (no
version in it) has to stay exactly the same. The card shows the rule it uses. If the project
renames the file, use **Change file**.

Each source gets a card. Nothing happens on its own: the app looks for new releases when you open
Payloads or press **Check** (at most every ten minutes otherwise; GitHub allows 60 checks an hour,
and when it says to wait, the card says until when). **Download** (or **Update**, when the card
says *New version available*) saves the file in the app's payload folder, checked against the
size the release gives and against its checksum file when it has one. The card then shows the
file's name, release, size and SHA-256, and **Send to PS5** asks once more, naming them, before
it sends. **Remove source** deletes the source and its downloaded file. The built-in catalogue
stays a list of project pages: PS5Upload never downloads those for you, so for them download the
file yourself and send it from **Payloads → Send payload**.

Repos you added before 12.6.0 come back as sources: press **Pick the file** on their card once.

**Q: The Send button says "Waiting for the helper to start…" for a long time.**
That is the normal probe window, up to 20 seconds. If it times out, the helper likely crashed on
load; send it again.
Expand Down
3 changes: 2 additions & 1 deletion MCP.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ More than 120 tools, all of them thin layers over [the engine's API](API.md):
| Convert | `convert_*` | Whether an archive can give its space back while it unpacks; put the AMPR emulator on a console for Convert on the PS5 (a conversion itself goes through `api_request`) |
| Games | `games_*`, `processes_*`, `saves_*`, `cheats_*` | Installed titles, launch and stop, back up saves, cheats |
| Hardware | `hw_*`, `power_*`, `notifications_*`, `health_*`, `disk_usage_*`, `cleanup_*`, `shell_run` | Temperatures, rest and wake, health checks and repairs, what fills the drive |
| Payloads | `payloads_*` | Catalogue, new-version checks and rollback, send (a file, or a copy already on the computer: ps5upload never downloads payloads), store, autoload, Payload Manager sync |
| Payloads | `payloads_*` | Catalogue, the payload sources you added (list, check for a new release, download its file), new-version checks and rollback, send (a file, or a copy already on the computer), store, autoload, Payload Manager sync. Built-in catalogue payloads are never downloaded, and only you can add a source, in the app |
| Remote Play | `rp_*` | Start and stop a session, see the picture, press buttons, type, answer a passcode; see what the controller sends and how pairing went |
| Friends and viewers | `together_*`, `golive_*`, `share_*` | Open Play Together and invite; go live; share an app's things with a friend |
| Everything else | `settings_*`, `devices_list`, `drive_*`, `api_catalog`, `api_describe`, `api_request` | Settings, Mesh Drive, and any route of the API |
Expand Down Expand Up @@ -282,6 +282,7 @@ clients let you allow tools one by one, so keep these on "ask".
| `power_control` | Rest, reboot or shut down |
| `shell_run` | Run any command on the console, and read any file there, sign-in keys included |
| `payloads_send` | Run a program on the console, with the same reach as a shell |
| `payloads_source_download` | Replace the copy of a payload source's file on this computer with its newest release |
| `payloads_store`, `payloads_delete`, `payloads_autoload`, `payloads_pm_sync` | Change what the console keeps and runs at boot |
| `cleanup_apply`, `health_fix` | Delete what a scan found, and apply repairs |
| `rp_stop` | End the Remote Play session someone may be playing |
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,10 @@
- A script or AI agent on the engine's computer can watch and play a running session
([AUTOMATION.md](AUTOMATION.md)), and drive everything else too ([API and AI agents](#api-and-ai-agents)).
- **Cheats, fan curve, hardware view,** payload sender with a payload guide and playlists, and
backport tools. ps5upload doesn't download payloads: get each one from its project page and
send the file. **Payload updates** says when a newer release is out, rolls back, and keeps
Payload Manager's copies and boot list in step.
backport tools. The payload guide links to each project page; add a GitHub, Gitea or Forgejo
project as your own payload source and the app downloads the file you picked when you ask, shows
its SHA-256 and sends it. **Payload updates** says when a newer release is out, rolls back, and
keeps Payload Manager's copies and boot list in step.
- **Bug reports in one place.** Bug Report (always in the sidebar) gathers the app's, the
engine's and the PS5 helper's logs for the time you pick into one `.zip`, with addresses,
serials and keys removed, ready to post on GitHub or Discord. **Detailed logs** (Logs tab)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.6.32
12.6.33
122 changes: 122 additions & 0 deletions client/e2e/files-move-to-server.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
import { expect, test, type Route } from "@playwright/test";

// #953: select items in Files, "Move to…", pick a saved server and a folder on it: each item goes
// to the engine as a download into that folder with remove_source (the engine deletes the original
// only after it checked the copy), one after another. "Copy there…" sends the same without it.
// The engine here is a fake.

const PRO = "192.168.0.5";

async function setup(page: import("@playwright/test").Page) {
await page.addInitScript((pro) => {
window.localStorage.setItem("ps5upload.host", pro);
window.localStorage.setItem(
"ps5upload.roster.v1",
JSON.stringify({ profiles: [{ id: "pro", name: "Pro", host: pro }], active_id: "pro" }),
);
}, PRO);
const json = (route: Route, body: unknown) =>
route.fulfill({ status: 200, contentType: "application/json", body: JSON.stringify(body) });
const downloads: Record<string, unknown>[] = [];
let running = 0;
let overlapped = false;
await page.route(
(u) => u.pathname.startsWith("/api/"),
async (route) => {
const req = route.request();
const url = new URL(req.url());
const p = url.pathname;
if (p === "/api/version") return json(route, { caps: { rar: true }, version: "6.7.4" });
if (p === "/api/ps5/status")
return json(route, {
command_count: 1,
instance_id: 1,
prior_instance: "clean",
ps5_kernel: "r229358/releases/13.60",
ucred_elevated: true,
version: "6.7.4",
});
if (p === "/api/ps5/volumes")
return json(route, {
volumes: [
{
path: "/data",
fs_type: "nullfs",
total_bytes: 900e9,
free_bytes: 400e9,
allocatable_bytes: 398e9,
writable: true,
is_placeholder: false,
},
],
});
if (p === "/api/ps5/list-dir")
return json(route, {
path: url.searchParams.get("path") ?? "/data",
entries: [
{ name: "GameA-app", kind: "dir", size: 0, mtime: 1 },
{ name: "b.bin", kind: "file", size: 4_000_000, mtime: 1 },
],
truncated: false,
total_scanned: 2,
returned: 2,
});
if (p === "/api/remote/connections")
return json(route, {
connections: [
{ id: "nas1", name: "Home NAS", protocol: "smb", host: "10.0.0.5", port: 445, share: "games", user: "", start_path: "/", host_key: null, has_secret: false },
],
});
if (p === "/api/remote/list") {
const at = (JSON.parse(req.postData() ?? "{}") as { path: string }).path;
return json(route, {
entries: at.endsWith("/PS5") ? [] : [{ name: "PS5", is_dir: true, size: 0, mtime: null }],
next_cursor: null,
});
}
if (p === "/api/transfer/download") {
if (running) overlapped = true;
running++;
downloads.push(req.postDataJSON());
return json(route, { job_id: `j${downloads.length}` });
}
// Each job ends at once, so the next item starts after it.
if (p.startsWith("/api/jobs/")) {
running = 0;
return json(route, { status: "done", bytes_sent: 10, total_bytes: 10, elapsed_ms: 5, dest: "x" });
}
return json(route, {});
},
);
return { downloads, overlapped: () => overlapped };
}

for (const how of ["Move", "Copy"] as const) {
test(`Files ${how === "Move" ? "moves" : "copies"} the selection to a folder on a saved server`, async ({ page }) => {
const seen = await setup(page);
await page.goto("/files", { waitUntil: "domcontentloaded" });
const main = page.getByRole("main");
await expect(main.getByText("GameA-app", { exact: true })).toBeVisible({ timeout: 30_000 });
await main.getByTitle("Select all").check();
await main.getByRole("button", { name: "Move to…" }).first().click();

const servers = page.getByTestId("move-servers");
await expect(servers).toContainText("Home NAS");
await servers.getByRole("button", { name: `${how} there…` }).click();

const picker = page.getByRole("dialog");
await picker.getByText("PS5", { exact: true }).click();
await picker.getByRole("button", { name: "Use this folder" }).click();

await expect.poll(() => seen.downloads.length, { timeout: 20_000 }).toBe(2);
expect(seen.overlapped()).toBe(false);
expect(seen.downloads.map((d) => [d.src_path, d.kind]).sort()).toEqual([
["/data/GameA-app", "folder"],
["/data/b.bin", "file"],
]);
for (const d of seen.downloads) {
expect(d.dest_dir).toBe("remote://nas1/PS5");
expect(d.remove_source).toBe(how === "Move" ? true : undefined);
}
});
}
Loading
Loading