Display device name w/ download instructions
All checks were successful
Build & Test WASM / build-and-test (push) Successful in 1m43s
All checks were successful
Build & Test WASM / build-and-test (push) Successful in 1m43s
This commit is contained in:
@@ -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('Patching complete');
|
||||||
|
await expect(page.locator('#build-status')).toContainText('Kobo Libra Colour');
|
||||||
|
|
||||||
// Step 8: Download KoboRoot.tgz and verify checksums.
|
// Step 8: Download KoboRoot.tgz and verify checksums.
|
||||||
const [download] = await Promise.all([
|
const [download] = await Promise.all([
|
||||||
@@ -136,6 +137,8 @@ test('full manual mode patching pipeline', async ({ page }) => {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
expect(download.suggestedFilename()).toBe('KoboRoot.tgz');
|
expect(download.suggestedFilename()).toBe('KoboRoot.tgz');
|
||||||
|
await expect(page.locator('#download-device-name')).toHaveText('Kobo Libra Colour');
|
||||||
|
|
||||||
const downloadPath = await download.path();
|
const downloadPath = await download.path();
|
||||||
const tgzData = fs.readFileSync(downloadPath);
|
const tgzData = fs.readFileSync(downloadPath);
|
||||||
|
|
||||||
|
|||||||
@@ -405,7 +405,7 @@
|
|||||||
action + '. <strong>KoboRoot.tgz</strong> (' + sizeTxt + ') is ready. ' +
|
action + '. <strong>KoboRoot.tgz</strong> (' + sizeTxt + ') is ready. ' +
|
||||||
(description ? description + ' ' : '') +
|
(description ? description + ' ' : '') +
|
||||||
(manualMode
|
(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.');
|
: 'Write it directly to your connected Kobo, or download for manual installation.');
|
||||||
|
|
||||||
const doneLog = document.getElementById('done-log');
|
const doneLog = document.getElementById('done-log');
|
||||||
@@ -481,6 +481,7 @@
|
|||||||
|
|
||||||
writeInstructions.hidden = true;
|
writeInstructions.hidden = true;
|
||||||
downloadInstructions.hidden = false;
|
downloadInstructions.hidden = false;
|
||||||
|
document.getElementById('download-device-name').textContent = KOBO_MODELS[selectedPrefix] || 'Kobo';
|
||||||
});
|
});
|
||||||
|
|
||||||
// --- Error / Retry ---
|
// --- Error / Retry ---
|
||||||
|
|||||||
@@ -163,7 +163,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="download-instructions" class="install-instructions" hidden>
|
<div id="download-instructions" class="install-instructions" hidden>
|
||||||
<ol class="install-steps">
|
<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>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><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>
|
<li>The device will reboot and apply the patches automatically.</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user