From 4156034403bd7d582958bf409b092d501a691f82 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Mon, 8 Apr 2019 18:41:08 +0100 Subject: [PATCH] Update instructions to ensure downloaded modules --- docs/native_node_modules.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/native_node_modules.md b/docs/native_node_modules.md index 24b71cf1c0..493cdcc901 100644 --- a/docs/native_node_modules.md +++ b/docs/native_node_modules.md @@ -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/ -``` \ No newline at end of file +``` + +The electron version of Riot can then be built normally according to the [build instructions](../README.md#running-as-a-desktop-app). \ No newline at end of file