feat: upgrade electron to v40 #609
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Electron Upgrade Walkthrough
Overview
Successfully upgraded
Leappdesktop application to Electron v40. This upgrade enhances performance, security, and compatibility with modern macOS versions.Changes Made
electronto^40.2.1inpackages/desktop-app.electron-builder,electron-rebuild->@electron/rebuildlogic handled by npm,electron-updater,@electron/remote).nanto latest version to support V8 changes in Electron v40.dpapi-addonlocally indesktop-appto ensure correct build with updatednan.dpapi-addon/buildto.gitignoreto prevent committing build artifacts.feat/upgrade-electron.-s) as per contribution guidelines.Verification Results
Build Verification
keytaranddpapi-addonrebuilt successfully against Electron v40 headers.npm run build-dev).Runtime Verification
npm run build-and-run-dev. The application builds and launches successfully.Next Steps for User
feat/upgrade-electronbranch to your fork.leapprepository.dpapi-addonupdate and the.gitignorechange.dpapi-addonat root is now used directly viafile:protocol indesktop-app(monorepo style) or request upstream to publish a newdpapi-addonversion on npm if they prefer.