From f80b403dfe4770e969cceea79873ef1ad18c71cb Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Thu, 30 Nov 2017 23:02:14 +0000 Subject: [PATCH] Create BUILD.md --- BUILD.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 BUILD.md diff --git a/BUILD.md b/BUILD.md new file mode 100644 index 0000000000..282e038558 --- /dev/null +++ b/BUILD.md @@ -0,0 +1,26 @@ +# Electron application + +- Install yarn - https://yarnpkg.com/lang/en/docs/install/ +- Install node v8.x (check with `node --version`) - https://nodejs.org/en/ +- Then run these commands: + +``` +cd ElectronClient/app +rsync -a ../../ReactNativeClient/lib/ lib/ +npm install +yarn dist +``` + +If there's an error `while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory`, run `sudo apt-get install libgconf-2-4` + +That will create the executable file in the `dist` directory. + +From `/ElectronClient` you can also run `run.sh` to run the app for testing. + +# Mobile application + +From `/ReactNativeClient`, run `npm install`, then `react-native run-ios` or `react-native run-android`. + +# Terminal application + +From `/CliClient`, run `npm install` then run `run.sh`. If you get an error about `xgettext`, comment out the command `node build-translation.js --silent` in build.sh