Fix OTA download (follow GitHub redirect), rework result screens, drop asset rename
OTA downloads always failed because GitHub's browser_download_url returns a 301/302 redirect to a signed objects.githubusercontent.com URL, which HTTPUpdate doesn't follow by default. Now sets HTTPC_STRICT_FOLLOW_REDIRECTS before downloading. Update results (success and failure) are now shown as a persistent info screen requiring an explicit tap to dismiss, instead of a 1.2-1.5s auto-vanishing message followed by an automatic restart - a firmware update result is important enough that it shouldn't be missable. Also fixes long dynamic titles (e.g. "Update available: v3.5.0") and the installing-progress label overflowing the screen edge in some languages. Release workflow no longer renames the build artifact to CYD-flightradar.bin before upload; the release asset is just firmware.bin now, matching what OtaUpdate::checkForUpdate() looks for. CLAUDE.md's release workflow updated to match. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
10
src/i18n.h
10
src/i18n.h
@@ -334,6 +334,16 @@ enum class StringId : uint8_t {
|
||||
OTA_UPDATE_FAILED,
|
||||
OTA_UPDATE_SUCCESS,
|
||||
|
||||
// Erfolgs-/Fehler-Ergebnis nach Download+Flash wird jetzt als
|
||||
// dauerhafter Info-Screen mit explizitem Button angezeigt (statt
|
||||
// automatischem Neustart bzw. kurzer, automatisch verschwindender
|
||||
// Meldung) - der Nutzer muss bei einer sicherheitsrelevanten Aktion wie
|
||||
// einem Firmware-Update IMMER aktiv informiert werden und selbst
|
||||
// bestaetigen, siehe menu_screen.cpp::infoScreen().
|
||||
OTA_SUCCESS_BODY,
|
||||
OTA_RESTART_BUTTON,
|
||||
OTA_FAILED_BODY,
|
||||
|
||||
COUNT
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user