check if the new update is compatible with the OS before downloading and updating (which means trashing the old version)
if it's not, turn off auto-updates and advise the user about EOL or other reasons why cannot update anymore
basically, take care about the UX during breaking updates and avoid leaving the user with a broken app that instantly crashes, without explaining why and how can fix the situation (ex. use the previous version).
In relation to what happen here: https://github.com/element-hq/element-desktop/issues/1505
I suggest to:
basically, take care about the UX during breaking updates and avoid leaving the user with a broken app that instantly crashes, without explaining why and how can fix the situation (ex. use the previous version).