@finsemble/finsemble-electron-adapter 6.3.1 → 6.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -46
- package/dist/e2o.js +1 -1
- package/dist/e2o_view.js +1 -1
- package/dist/exports.js +1 -1
- package/dist/grpc/grpc.ts +9 -9
- package/exports.js +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
# Finsemble Electron Adapter ⚡
|
|
2
|
-
|
|
3
|
-
A secure container for building SmartDesktops.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
Grab it from NPM:
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
yarn add @finsemble/finsemble-electron-adapter
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
# Usage
|
|
14
|
-
|
|
15
|
-
FEA provides three entry points: `app.js`,`e2oLauncher`,`packager`.
|
|
16
|
-
|
|
17
|
-
Note: Electron (electron-packager actually) requires that "main" in package.json points to the Electon application entry
|
|
18
|
-
point. Therefore, the "exports" from FEA have to come from another file. We therefore manually include "exports.js" in
|
|
19
|
-
package.json "files", and anyone that imports (e.g. seed project) must append this to the import:
|
|
20
|
-
|
|
21
|
-
Example `let FEA=require("@finsemble/finsemble-electron-adapter/exports");`
|
|
22
|
-
|
|
23
|
-
## app.js
|
|
24
|
-
|
|
25
|
-
`/dist/app.js` is the main Electron application. This is passed as a command line parameter to Electron.
|
|
26
|
-
|
|
27
|
-
## exports.e2oLauncher
|
|
28
|
-
|
|
29
|
-
`e2oLauncher` allows FEA to be launched from a node process (instead of from an Electron exe). It spawns dist/app.js in
|
|
30
|
-
a background child process.
|
|
31
|
-
|
|
32
|
-
Example:
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
const params = {manifest: "http://localhost:3375/config/manifest.json"}
|
|
36
|
-
e2o.e2oLauncher(params,cb)
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## exports.packager
|
|
40
|
-
|
|
41
|
-
FEA uses `electron-packager`(https://github.com/electron-userland/electron-packager/blob/main/docs/api.md )
|
|
42
|
-
`electron-wininstaller`(https://github.com/electron/windows-installer) to package and create installers. You must first
|
|
43
|
-
create a "package" before creating your "installer". (See `electron-packager` for more details.)
|
|
44
|
-
|
|
45
|
-
FEA provides three utility functions under `finsemble-electron-adapter.packager`:
|
|
46
|
-
`createPackage`,`createInstaller`,`createFullInstaller`.
|
|
1
|
+
# Finsemble Electron Adapter ⚡
|
|
2
|
+
|
|
3
|
+
A secure container for building SmartDesktops.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Grab it from NPM:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
yarn add @finsemble/finsemble-electron-adapter
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
# Usage
|
|
14
|
+
|
|
15
|
+
FEA provides three entry points: `app.js`,`e2oLauncher`,`packager`.
|
|
16
|
+
|
|
17
|
+
Note: Electron (electron-packager actually) requires that "main" in package.json points to the Electon application entry
|
|
18
|
+
point. Therefore, the "exports" from FEA have to come from another file. We therefore manually include "exports.js" in
|
|
19
|
+
package.json "files", and anyone that imports (e.g. seed project) must append this to the import:
|
|
20
|
+
|
|
21
|
+
Example `let FEA=require("@finsemble/finsemble-electron-adapter/exports");`
|
|
22
|
+
|
|
23
|
+
## app.js
|
|
24
|
+
|
|
25
|
+
`/dist/app.js` is the main Electron application. This is passed as a command line parameter to Electron.
|
|
26
|
+
|
|
27
|
+
## exports.e2oLauncher
|
|
28
|
+
|
|
29
|
+
`e2oLauncher` allows FEA to be launched from a node process (instead of from an Electron exe). It spawns dist/app.js in
|
|
30
|
+
a background child process.
|
|
31
|
+
|
|
32
|
+
Example:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
const params = {manifest: "http://localhost:3375/config/manifest.json"}
|
|
36
|
+
e2o.e2oLauncher(params,cb)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## exports.packager
|
|
40
|
+
|
|
41
|
+
FEA uses `electron-packager`(https://github.com/electron-userland/electron-packager/blob/main/docs/api.md )
|
|
42
|
+
`electron-wininstaller`(https://github.com/electron/windows-installer) to package and create installers. You must first
|
|
43
|
+
create a "package" before creating your "installer". (See `electron-packager` for more details.)
|
|
44
|
+
|
|
45
|
+
FEA provides three utility functions under `finsemble-electron-adapter.packager`:
|
|
46
|
+
`createPackage`,`createInstaller`,`createFullInstaller`.
|