- Prerequisite
- MacOS
- VMWare/Windows 10 (No space allowed in username.)
- Install in "more isolated model" and share the source code folder using VMWare
- Install the right Node windows installer
- Make sure to install C/C++ tools.
- Install python2.7 (nw-gyp need python 2.7) and set PATH for python2.7 to override python3.x.
- pm install -g nw-gyp
- Check https://github.com/nodejs/node-gyp and https://docs.nwjs.io/en/latest/For%20Users/Advanced/Use%20Native%20Node%20Modules/ if having problems.
- HTML 5
- Node.js
- NW.js
- Chrome/Devtool
- Tools
- Webstorm
- Clion
- XCode
- Javascript coding styles
- Software development process
- How to report an issue
- Basic structure
- XcMain
- Libraries
- Parasolid
- XcUI
- XcSys
- XcGm
- App
- 3D CAD
- Go to
XcExternal
folder and download the packages following the instructions inREADME.md
. - Since macOS has very strict permission control policy or unzip tools may damage the file attributes, we need to right-click and open the executable files so those executables can be loaded or launched.
- Build
- Build on Mac first
- Go to
Industry-CAD/XcMain
and run../XcExternal/node.darwin/bin/node ../XcExternal/node.darwin/bin/npm install
command to install npm packages. - Go to the
Industry-CAD
folder in terminal and run./XcExternal/node.darwin/bin/node ./build_scripts/build_darwin.js
- Build on Win32
- In the VMWare, share
Industry-CAD
folder asZ:\
in the Windows 10. - Go the command window application, go to
Z:\Industry-CAD
folder, and then run.\XcExternal\node.win32\node .\build_scripts\build_win32.js
- Go to
XcDebug
- Use
../XcExternal/nwjs.sdk.darwin/nwjs.app/Contents/MacOS/nwjs .
on mac or to use..\XcExternal\nwjs.sdk.win32\nw .
on Windows to launch the application.
- Install the right version of Node required by the NW.js.
- Install
nw-gyp
usingnpm install -g nw-gyp
. - Update the node and nwjs files on
XcExternal
following theREADME.md
inXcExternal
. Please right-click and open all executable files (such as node/nwjc etc.) on macOS for permission control reasons. - Delete all node_modules folder and run
../XcExternal/node.darwin/bin/node ../XcExternal/node.darwin/bin/npm install
in XcMain to install packages. - Update the XcGmPk (check the README for more information).
- Rebuild all packages.