feat: enhance native binary resolution and add bundled Node.js runtime

- Refactored gelectron.js to improve native binary discovery with additional paths and environment variable support.
- Implemented a function to find the Node.js runtime, allowing bundled Node.js to be used when available.
- Updated package.json to include gelectron-packager as a CLI command.
- Enhanced gelectron-packager.js to locate installed gelectron runtime and added compatibility for bundled Node.js.
- Modified install-release.sh to download and install a private Node.js runtime alongside the gelectron binary.
- Updated NSIS installer script to include bundled Node.js runtime.
- Enhanced AppImage and DMG packaging scripts to include Node.js runtime.
- Added clipboard, nativeTheme, and screen modules for Electron compatibility.
- Implemented native bridge request handling for clipboard operations.
This commit is contained in:
2026-09-05 22:23:37 -05:00
parent 247daa6460
commit 1689adffc6
16 changed files with 816 additions and 79 deletions
+3 -1
View File
@@ -4,7 +4,9 @@
"description": "Firefox-engine alternative to Electron, powered by Servo",
"main": "src/electron/index.js",
"bin": {
"gelectron-core": "./cli/gelectron.js"
"gelectron": "./cli/gelectron.js",
"gelectron-core": "./cli/gelectron.js",
"gelectron-packager": "./packager/bin/gelectron-packager.js"
},
"scripts": {
"build": "napi build --platform --release --package gelectron-core",