export path
#NODE_PATH=/Users/ios_build/.nvm/versions/node/v6.11.0/
#PATH=${NODE_PATH}/bin:${PATH}
#sudo -H npm "install" "." "--force" "--global"
#sudo npm install -g asar@0.13.0
#sudo npm install  -g electron@1.6.10
#sudo npm install -g electron-rebuild@1.5.11
#sudo npm install -g electron-packager
#sudo npm install -g node-gyp
#sudo npm install -g nan
#sudo npm install -g bindings@1.2.1
npm install spellchecker@3.3.1
npm install node-notifier@5.0.2
cp -a terminal-notifier.app ./node_modules/node-notifier/vendor
rm -rf terminal-notifier.app
##node-gyp rebuild
npm install nan --save
/usr/local/bin/node-gyp rebuild

export npm_config_target=1.6.10
# The architecture of Electron, can be ia32 or x64.
export npm_config_arch=x64
export npm_config_target_arch=x64
# Download headers for Electron.
export npm_config_disturl=https://atom.io/download/electron
# Tell node-pre-gyp that we are building for Electron.
export npm_config_runtime=electron
# Tell node-pre-gyp to build module from source code.
export npm_config_build_from_source=true
# Install all dependencies, and store cache to ~/.electron-gyp.
HOME=~/.electron-gyp npm install

npm install electron-rebuild@1.5.11

npm run rebuild

npm start

sh shell/copy.sh
