mirror of
https://github.com/par274/sharpemu.git
synced 2026-07-31 06:59:45 +08:00
GUI: harden cross-platform updater integrity and rollback (#389)
* GUI: verify updater releases by commit and SHA-256 * GUI: add updater rollback and version safeguards
This commit is contained in:
committed by
GitHub
parent
b3e3fe5ea8
commit
e6be48a390
@@ -868,6 +868,11 @@ public partial class MainWindow : Window
|
||||
SetUpdateStatus("Updater.Status.Installing");
|
||||
Close();
|
||||
}
|
||||
catch (InvalidDataException)
|
||||
{
|
||||
SetUpdateStatus("Updater.Status.ChecksumFailed");
|
||||
UpdateButton.IsEnabled = true;
|
||||
}
|
||||
catch
|
||||
{
|
||||
SetUpdateStatus("Updater.Status.Failed");
|
||||
|
||||
Reference in New Issue
Block a user