Update linux installation authored by yannick legoc's avatar yannick legoc
## Node.js dependency ## Installation
### Debian ### Debian
...@@ -9,6 +9,14 @@ To install Node.js, use the following commands to get version 20.x: ...@@ -9,6 +9,14 @@ To install Node.js, use the following commands to get version 20.x:
This will install *npm* which will be used to build and start the application. This will install *npm* which will be used to build and start the application.
Install the project:
```
$ npm install
```
### Install node-gyp
Get the *node-gyp* tool: Get the *node-gyp* tool:
$ sudo npm install -g node-gyp $ sudo npm install -g node-gyp
...@@ -25,6 +33,28 @@ To rebuild the addons, launch: ...@@ -25,6 +33,28 @@ To rebuild the addons, launch:
$ ./node-gyp-electron.sh $ ./node-gyp-electron.sh
## Standalone version
The standalone version is a packaged version where the dependencies are integrated into the addons.
Install vexplib as a static library:
```
$ cmake -DBUILD_SHARED_LIBS=OFF ..
$ make
$ sudo make install
```
Rebuild the addons with the good electron version:
```
$ node-gyp rebuild --target=v25.2.0 --dist-url=https://electronjs.org/headers --nomad=true --vexplib=true --vexp_libdir=/usr/local/lib/libvexplib.a
```
Package the project:
```
$ npm run package-linux
```
## Notes ## Notes
If you need to set the proxy at the ILL: If you need to set the proxy at the ILL:
... ...
......