A desktop application for quickly testing the integration between openafpm-cad-core and openafpm-cad-visualization.
-
Install Node.js.
-
Install Yarn.
npm install yarn -g
-
Install dependencies.
yarn install
-
Install FreeCAD, openafpm-cad-core module (plus dependencies), and create
.env
file../install.sh
Currently the
install.sh
script only supports Linux and Windows (via Git for Windows). A contribution to support MacOS is welcomed.
npm start
electron-builder is used to package and distribute the application.
-
To generate the package directory (
dist
), run:npm run pack
-
Then package the application for distribution, run:
npm run dist
Configuration for electron-builder is found under the build
key in package.json
.
asar
is set to false
to spawn Python child processes from Node.js via a bundled Python interpreter.