mirror of
https://github.com/mileswolfallen2/gelectron.git
synced 2026-12-03 15:53:25 +00:00
Update README and package.json files for Gelectron installation instructions and native addon details
This commit is contained in:
1 parent
c96d6dfc5a
commit
40f15bc45a
14 files changed
+176
-30
No files matched your search
@@ -7,6 +7,7 @@ node_modules/
|
||||
npm-debug.log*
|
||||
package-lock.json
|
||||
|
||||
al/
|
||||
# Build artifacts
|
||||
*.node
|
||||
*.dylib
|
||||
|
||||
@@ -22,13 +22,31 @@ Electron bundles Chromium — ~300 MB per app with 500+ MB RSS. Gelectron uses t
|
||||
|
||||
## Quick Start
|
||||
|
||||
### Prerequisites
|
||||
### Install from npm (recommended)
|
||||
|
||||
The built native binary and the Electron compatibility layer are published to npm. This is the main and easiest way to get Gelectron — no Rust toolchain required:
|
||||
|
||||
```bash
|
||||
npm install -g gelectron-core
|
||||
```
|
||||
|
||||
This installs the `gelectron-core` package, which bundles the pre-built native binary and the JS compatibility layer, and automatically pulls in the platform-specific addon for your operating system and CPU architecture (see the [package on npm](https://www.npmjs.com/package/gelectron-core)).
|
||||
|
||||
Once installed, run any Electron app with:
|
||||
|
||||
```bash
|
||||
gelectron-core /path/to/electron-app
|
||||
```
|
||||
|
||||
> The `gelectron-core` npm package is the recommended distribution channel. Building from source (below) is only needed if you're developing Gelectron itself or want the bleeding-edge version.
|
||||
|
||||
### Prerequisites (for building from source)
|
||||
|
||||
- Rust 1.75+ (`rustup.rs`)
|
||||
- Node.js 18+
|
||||
- npm
|
||||
|
||||
### Build & Run
|
||||
### Build & Run (from source)
|
||||
|
||||
```bash
|
||||
git clone https://github.com/mileswolfallen2/gelectron.git
|
||||
|
||||
@@ -3,9 +3,15 @@
|
||||
"version": "0.1.1",
|
||||
"description": "Gelectron native addon for macOS ARM64",
|
||||
"main": "gelectron_core.darwin-arm64.node",
|
||||
"files": ["gelectron_core.darwin-arm64.node"],
|
||||
"os": ["darwin"],
|
||||
"cpu": ["arm64"],
|
||||
"files": [
|
||||
"gelectron_core.darwin-arm64.node"
|
||||
],
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"license": "MIT",
|
||||
"author": "mileswa1q22"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
# Gelectron (macOS x64)
|
||||
|
||||
Gelectron native addon for **macOS on x64 (Intel)**.
|
||||
|
||||
This package provides the native `gelectron_core` binary for macOS x64. It is an internal dependency of [`gelectron`](https://www.npmjs.com/package/gelectron) and is installed automatically — you should not need to install it directly.
|
||||
|
||||
> Gelectron is a drop-in replacement for Electron using native web views (WKWebView / WebView2 / WebKitGTK) instead of Chromium.
|
||||
|
||||
## Usage
|
||||
|
||||
Install the platform-specific addon for your system:
|
||||
|
||||
```bash
|
||||
npm install gelectron
|
||||
```
|
||||
|
||||
The correct platform binary is selected automatically via `optionalDependencies`.
|
||||
@@ -3,9 +3,15 @@
|
||||
"version": "0.1.1",
|
||||
"description": "Gelectron native addon for macOS x64",
|
||||
"main": "gelectron_core.darwin-x64.node",
|
||||
"files": ["gelectron_core.darwin-x64.node"],
|
||||
"os": ["darwin"],
|
||||
"cpu": ["x64"],
|
||||
"files": [
|
||||
"gelectron_core.darwin-x64.node"
|
||||
],
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"license": "MIT",
|
||||
"author": "mileswa1q22"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
# Gelectron (Linux ARM64)
|
||||
|
||||
Gelectron native addon for **Linux on ARM64 (GNU)**.
|
||||
|
||||
This package provides the native `gelectron_core` binary for Linux ARM64. It is an internal dependency of [`gelectron`](https://www.npmjs.com/package/gelectron) and is installed automatically — you should not need to install it directly.
|
||||
|
||||
> Gelectron is a drop-in replacement for Electron using native web views (WKWebView / WebView2 / WebKitGTK) instead of Chromium.
|
||||
|
||||
## Usage
|
||||
|
||||
Install the platform-specific addon for your system:
|
||||
|
||||
```bash
|
||||
npm install gelectron
|
||||
```
|
||||
|
||||
The correct platform binary is selected automatically via `optionalDependencies`.
|
||||
@@ -3,9 +3,15 @@
|
||||
"version": "0.1.1",
|
||||
"description": "Gelectron native addon for Linux ARM64 (GNU)",
|
||||
"main": "gelectron_core.linux-arm64-gnu.node",
|
||||
"files": ["gelectron_core.linux-arm64-gnu.node"],
|
||||
"os": ["linux"],
|
||||
"cpu": ["arm64"],
|
||||
"files": [
|
||||
"gelectron_core.linux-arm64-gnu.node"
|
||||
],
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"license": "MIT",
|
||||
"author": "mileswa1q22"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
# Gelectron (Linux x64)
|
||||
|
||||
Gelectron native addon for **Linux on x64 (GNU)**.
|
||||
|
||||
This package provides the native `gelectron_core` binary for Linux x64. It is an internal dependency of [`gelectron`](https://www.npmjs.com/package/gelectron) and is installed automatically — you should not need to install it directly.
|
||||
|
||||
> Gelectron is a drop-in replacement for Electron using native web views (WKWebView / WebView2 / WebKitGTK) instead of Chromium.
|
||||
|
||||
## Usage
|
||||
|
||||
Install the platform-specific addon for your system:
|
||||
|
||||
```bash
|
||||
npm install gelectron
|
||||
```
|
||||
|
||||
The correct platform binary is selected automatically via `optionalDependencies`.
|
||||
@@ -3,9 +3,15 @@
|
||||
"version": "0.1.1",
|
||||
"description": "Gelectron native addon for Linux x64 (GNU)",
|
||||
"main": "gelectron_core.linux-x64-gnu.node",
|
||||
"files": ["gelectron_core.linux-x64-gnu.node"],
|
||||
"os": ["linux"],
|
||||
"cpu": ["x64"],
|
||||
"files": [
|
||||
"gelectron_core.linux-x64-gnu.node"
|
||||
],
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"license": "MIT",
|
||||
"author": "mileswa1q22"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
# Gelectron (Windows ARM64)
|
||||
|
||||
Gelectron native addon for **Windows on ARM64**.
|
||||
|
||||
This package provides the native `gelectron_core` binary for Windows ARM64. It is an internal dependency of [`gelectron`](https://www.npmjs.com/package/gelectron) and is installed automatically — you should not need to install it directly.
|
||||
|
||||
> Gelectron is a drop-in replacement for Electron using native web views (WKWebView / WebView2 / WebKitGTK) instead of Chromium.
|
||||
|
||||
## Usage
|
||||
|
||||
Install the platform-specific addon for your system:
|
||||
|
||||
```bash
|
||||
npm install gelectron
|
||||
```
|
||||
|
||||
The correct platform binary is selected automatically via `optionalDependencies`.
|
||||
@@ -3,9 +3,15 @@
|
||||
"version": "0.1.1",
|
||||
"description": "Gelectron native addon for Windows ARM64",
|
||||
"main": "gelectron_core.win32-arm64-msvc.node",
|
||||
"files": ["gelectron_core.win32-arm64-msvc.node"],
|
||||
"os": ["win32"],
|
||||
"cpu": ["arm64"],
|
||||
"files": [
|
||||
"gelectron_core.win32-arm64-msvc.node"
|
||||
],
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"license": "MIT",
|
||||
"author": "mileswa1q22"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
# Gelectron (Windows x64)
|
||||
|
||||
Gelectron native addon for **Windows on x64**.
|
||||
|
||||
This package provides the native `gelectron_core` binary for Windows x64. It is an internal dependency of [`gelectron`](https://www.npmjs.com/package/gelectron) and is installed automatically — you should not need to install it directly.
|
||||
|
||||
> Gelectron is a drop-in replacement for Electron using native web views (WKWebView / WebView2 / WebKitGTK) instead of Chromium.
|
||||
|
||||
## Usage
|
||||
|
||||
Install the platform-specific addon for your system:
|
||||
|
||||
```bash
|
||||
npm install gelectron
|
||||
```
|
||||
|
||||
The correct platform binary is selected automatically via `optionalDependencies`.
|
||||
@@ -3,9 +3,15 @@
|
||||
"version": "0.1.1",
|
||||
"description": "Gelectron native addon for Windows x64",
|
||||
"main": "gelectron_core.win32-x64-msvc.node",
|
||||
"files": ["gelectron_core.win32-x64-msvc.node"],
|
||||
"os": ["win32"],
|
||||
"cpu": ["x64"],
|
||||
"files": [
|
||||
"gelectron_core.win32-x64-msvc.node"
|
||||
],
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"license": "MIT",
|
||||
"author": "mileswa1q22"
|
||||
}
|
||||
}
|
||||
+10
-4
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"name": "gelectron",
|
||||
"name": "gelectron-core",
|
||||
"version": "0.1.1",
|
||||
"description": "Firefox-engine alternative to Electron, powered by Servo",
|
||||
"main": "src/electron/index.js",
|
||||
"bin": {
|
||||
"gelectron": "./cli/gelectron.js"
|
||||
"gelectron-core": "./cli/gelectron.js"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "napi build --platform --release --package gelectron-core",
|
||||
@@ -63,6 +63,12 @@
|
||||
"gelectron-linux-arm64-gnu": "0.1.1",
|
||||
"gelectron-linux-x64-gnu": "0.1.1",
|
||||
"gelectron-win32-arm64-msvc": "0.1.1",
|
||||
"gelectron-win32-x64-msvc": "0.1.1"
|
||||
"gelectron-win32-x64-msvc": "0.1.1",
|
||||
"gelectron-core-darwin-x64": "0.1.1",
|
||||
"gelectron-core-darwin-arm64": "0.1.1",
|
||||
"gelectron-core-win32-x64-msvc": "0.1.1",
|
||||
"gelectron-core-win32-arm64-msvc": "0.1.1",
|
||||
"gelectron-core-linux-x64-gnu": "0.1.1",
|
||||
"gelectron-core-linux-arm64-gnu": "0.1.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user