yasithdev opened a new pull request, #147:
URL: https://github.com/apache/airavata-portals/pull/147
Upgrades `electron` in airavata-local-agent from `^29.3.0` to `^39.0.0`
(resolves to 39.8.10), superseding dependabot #49.
**Code change:** the two `session.defaultSession.clearStorageData()` calls
in `main/background.js` are migrated from the removed callback overload to the
promise-based API (`.then()/.catch()`); the callback form no longer exists in
modern Electron. No other main-process Electron API used by the app changed
across 30..39.
**Built & verified (macOS arm64, Node 26, Electron 39.8.10):**
1. Clean `npm install` — `postinstall` (`electron-builder install-app-deps`)
rebuilt native deps (cpu-features via @electron/rebuild) against
`electronVersion=39.8.10 arch=arm64`; completed with no native build errors.
2. `CSC_IDENTITY_AUTO_DISCOVERY=false npm run build -- --mac --publish
never` — `next build` exported 12 static pages, the main-process webpack bundle
compiled, and electron-builder (v26.15.2) packaged a DMG + zip + `.app`
(Electron Framework 39.8.10 embedded). Exit 0, no errors;
`electron-builder.yml` needed no changes for v26.
3. Launch smoke: ran the packaged `.app` for ~20s under a timeout. The main
process started, `app.whenReady()` fired ("App is now ready"), the migrated
`clearStorageData()` promise resolved ("Cleared storage data"), and
renderer→main IPC ran (gateways, version, docker-ping loop) with no crash
before being killed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]