Update instructions to ensure downloaded modules

pull/7709/head
Andrew Morgan 2019-04-08 18:41:08 +01:00
parent 10d0b728fd
commit 4156034403
1 changed files with 6 additions and 2 deletions

View File

@ -13,7 +13,9 @@ Do note that compiling a module for a particular operating system (Linux/Mac/Win
If you would like to rebuild the module yourself and replace the downloaded binaries, use the following commands from Riot's root directory:
```bash
cd electron_app/node_modules
cd electron_app
npm i
cd node_modules
rm -rf iohook
git clone https://github.com/matrix-org/iohook
cd iohook
@ -44,4 +46,6 @@ ostype="darwin"
folder="electron-v69-$ostype-x$osarch"
mkdir -p builds/$folder/build/Release
cp build/Release/iohook.node builds/$folder/build/Release/
```
```
The electron version of Riot can then be built normally according to the [build instructions](../README.md#running-as-a-desktop-app).