From 998084160f9fbb462157d5bed65bb8ae1b9a3bda Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sat, 8 Aug 2026 19:37:51 +0100 Subject: [PATCH] Add app update engine handling and UI enhancements - Introduced `getAppEngine` method in the Electron context to retrieve the current app update engine. - Updated the Settings component to manage and display the app update engine, allowing users to select between 'Native' and 'Chromium'. - Enhanced the app update logic to persist the selected engine and ensure proper handling during updates. - Improved UI in the NewAppUpdate component to show the engine type associated with updates. - Refactored app update settings management to include engine normalization and validation. --- .../Management/AppUpdates/NewAppUpdate.jsx | 10 ++ .../Dashboard/Management/Settings.jsx | 88 ++++++++++++-- .../Dashboard/context/AppUpdateContext.jsx | 109 +++++++++++++++--- .../Dashboard/context/ElectronContext.jsx | 12 +- src/desktop/appupdate.js | 82 +++++++++++-- src/desktop/rpc.js | 7 +- src/electrobun-bridge.js | 3 +- 7 files changed, 276 insertions(+), 35 deletions(-) diff --git a/src/components/Dashboard/Management/AppUpdates/NewAppUpdate.jsx b/src/components/Dashboard/Management/AppUpdates/NewAppUpdate.jsx index b2c0835..8cef762 100644 --- a/src/components/Dashboard/Management/AppUpdates/NewAppUpdate.jsx +++ b/src/components/Dashboard/Management/AppUpdates/NewAppUpdate.jsx @@ -88,6 +88,16 @@ const NewAppUpdate = ({ update, onCancel, onUpdate }) => { Branch: {update?.branch || 'Unknown'} + + Engine:{' '} + + {update?.engine === 'chromium' + ? 'Chromium' + : update?.engine === 'native' + ? 'Native' + : 'Unknown'} + +