This is a basic version to support Electron framework on Mac.
Please use the following steps to get the sample app setup and running.
- Install Brew
curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1
- Install npm and Node.js
brew install node
- Install Electron
i: sudo npm install -g electron --unsafe-perm=true
cd /usr/local/lib/node_modules/electron
ii: npm install nodobjc
iii: npm install --save-dev electron-rebuild
iv: ./node_modules/.bin/electron-rebuild
v: npm rebuild --runtime=electron --target=1.7.9 --disturl=https://atom.io/download/atom-shell --build-from-source
To Run it:
-
Make sure u have installed Electron successfully.
-
Get Electron release package contains three zip: Demo_, Lib_, mac_sdk_*
Demo_*: the Electron demo
Lib_*: JS files that make the bridge from JS to ObjectC
mac_sdk_*: Zoom Mac SDK ObjectC libs.
-
unzip the three zips above, will show three folders: /demo, /lib, /ZoomSDK
-
copy the node_modules folder located in /usr/local/lib/node_modules/electron/node_modules to /demo
-
copy folder /ZoomSDK to both /node_modules folder
-
copy all libs contained in /ZoomSDK to /usr/local/lib/node_modules/electron/dist/Electron.app/Content/Frameworks folder
-
cd /demo folder and run command "electron ."