Skip to content

Commit 39bbe24

Browse files
Merge pull request #3 from bitcoin3us/warn-before-reflash
Warn that reflashing an installed device can erase user data
2 parents 9d612c1 + b081421 commit 39bbe24

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

index.html

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,29 @@
152152
font-weight: bold;
153153
}
154154

155+
.data-warning {
156+
background: #FFF4E5;
157+
border: 2px solid #FF6B6B;
158+
border-radius: 12px;
159+
padding: 16px 20px;
160+
margin: 16px auto;
161+
max-width: 640px;
162+
text-align: left;
163+
}
164+
165+
.data-warning h3 {
166+
color: #C0392B;
167+
margin-bottom: 8px;
168+
}
169+
170+
.data-warning ul {
171+
margin: 8px 0 0 20px;
172+
}
173+
174+
.data-warning li {
175+
margin-bottom: 6px;
176+
}
177+
155178
.instructions-section {
156179
margin: 60px 0;
157180
background: #fff;
@@ -393,6 +416,24 @@ <h2>Select Version</h2>
393416
<br />
394417
</div>
395418
</div>
419+
<div class="data-warning">
420+
<h3>&#9888;&#65039; Already running MicroPythonOS? This can erase your data.</h3>
421+
<p>This installer performs a <strong>clean install</strong>, not an update:</p>
422+
<ul>
423+
<li>If you select <strong>"Erase device"</strong> during installation, your storage
424+
partition — installed apps, WiFi credentials, wallet-display configs, Nostr
425+
keys/npub and all other user data — <strong>will certainly be erased</strong>.</li>
426+
<li>Even without erasing, the new version <strong>might use a different partition
427+
layout</strong> than the one on your device (this can happen from time to time as
428+
MicroPythonOS evolves). In that case your storage partition is reformatted on
429+
first boot, without any prompt.</li>
430+
<li>The supported way to update an installed device is the built-in
431+
<strong>OSUpdate</strong> app (over-the-air update), which preserves all your
432+
data — see <a href="https://docs.micropythonos.com/getting-started/updating/">Updating</a>.</li>
433+
<li>Just like for any electronics device: <strong>back up important files before
434+
re-installing the software</strong>.</li>
435+
</ul>
436+
</div>
396437
<!-- careful: if the user doesn't select anything and just leaves the default radio button selected, this will not be updated: -->
397438
<esp-web-install-button id="installButton"
398439
manifest="/manifests/esp32s3/MicroPythonOS_esp32s3_0.17.x.json"

0 commit comments

Comments
 (0)