|
152 | 152 | font-weight: bold; |
153 | 153 | } |
154 | 154 |
|
| 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 | + |
155 | 178 | .instructions-section { |
156 | 179 | margin: 60px 0; |
157 | 180 | background: #fff; |
@@ -393,6 +416,24 @@ <h2>Select Version</h2> |
393 | 416 | <br /> |
394 | 417 | </div> |
395 | 418 | </div> |
| 419 | + <div class="data-warning"> |
| 420 | + <h3>⚠️ 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> |
396 | 437 | <!-- careful: if the user doesn't select anything and just leaves the default radio button selected, this will not be updated: --> |
397 | 438 | <esp-web-install-button id="installButton" |
398 | 439 | manifest="/manifests/esp32s3/MicroPythonOS_esp32s3_0.17.x.json" |
|
0 commit comments