1
0

Display device name w/ download instructions
All checks were successful
Build & Test WASM / build-and-test (push) Successful in 1m43s

This commit is contained in:
2026-03-16 22:32:33 +01:00
parent 18a1db3161
commit d8410d6f14
3 changed files with 6 additions and 2 deletions

View File

@@ -128,6 +128,7 @@ test('full manual mode patching pipeline', async ({ page }) => {
}
await expect(page.locator('#build-status')).toContainText('Patching complete');
await expect(page.locator('#build-status')).toContainText('Kobo Libra Colour');
// Step 8: Download KoboRoot.tgz and verify checksums.
const [download] = await Promise.all([
@@ -136,6 +137,8 @@ test('full manual mode patching pipeline', async ({ page }) => {
]);
expect(download.suggestedFilename()).toBe('KoboRoot.tgz');
await expect(page.locator('#download-device-name')).toHaveText('Kobo Libra Colour');
const downloadPath = await download.path();
const tgzData = fs.readFileSync(downloadPath);

View File

@@ -405,7 +405,7 @@
action + '. <strong>KoboRoot.tgz</strong> (' + sizeTxt + ') is ready. ' +
(description ? description + ' ' : '') +
(manualMode
? 'Download the file and copy it to your Kobo.'
? 'Download the file and copy it to your ' + (KOBO_MODELS[selectedPrefix] || 'Kobo') + '.'
: 'Write it directly to your connected Kobo, or download for manual installation.');
const doneLog = document.getElementById('done-log');
@@ -481,6 +481,7 @@
writeInstructions.hidden = true;
downloadInstructions.hidden = false;
document.getElementById('download-device-name').textContent = KOBO_MODELS[selectedPrefix] || 'Kobo';
});
// --- Error / Retry ---

View File

@@ -163,7 +163,7 @@
</div>
<div id="download-instructions" class="install-instructions" hidden>
<ol class="install-steps">
<li>Connect your Kobo via USB so it appears as a removable drive.</li>
<li>Connect your <span id="download-device-name">Kobo</span> via USB so it appears as a removable drive.</li>
<li>Copy <strong>KoboRoot.tgz</strong> into the <strong>.kobo</strong> folder on the Kobo drive.</li>
<li><strong>Safely eject</strong> the Kobo — do not just unplug the cable, as this can corrupt data.</li>
<li>The device will reboot and apply the patches automatically.</li>