forked from rotki/rotki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·28 lines (22 loc) · 884 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
# env
# This needs to be the same electron version as we have in package.json
export npm_config_target=1.6.10
export npm_config_arch=x64
export npm_config_target_arch=x64
export npm_config_disturl=https://atom.io/download/electron
export npm_config_runtime=electron
export npm_config_build_from_source=true
npm config ls
# clean caches, very important!!!!!
rm -rf ~/.node-gyp
rm -rf ~/.electron-gyp
rm -rf ./node_modules
# install everything based on the package.json
npm install
# If when running you get a different node.js version error
# just like here: https://github.com/fyears/electron-python-example/issues/9
# then do the following as seen in SO: http://stackoverflow.com/questions/42616008/node-module-version-conflict-when-installing-modules-for-electron/42616189#42616189
./node_modules/.bin/electron-rebuild
# run
./node_modules/.bin/electron .