Electron build docs and libraries update

This commit is contained in:
Mike Molinari 2022-11-06 08:49:13 +00:00
parent 2c7fca94d3
commit 999ec20fd6
2 changed files with 15 additions and 14 deletions

View file

@ -77,18 +77,20 @@ Get Started With the Code
========================= =========================
Install node.js Install node.js
```
* $ cd \<jsketcher folder\> npm install
* $ npm install npm start
* $ npm start ```
Generate Electron Build for desktop Generate Electron Build for desktop
========================= =========================
* $ npm run electron:package:linux ```
* $ npm run electron:package:win npm run electron:package:linux
* $ npm run electron:package:mac npm run electron:package:win
npm run electron:package:mac
```
The resulting binary will be placed in the dist folder that is generated. The resulting binary will be placed in the dist folder that is generated.

View file

@ -72,8 +72,8 @@
"checks-passed-banner": "echo 'All conditions passed. Ready to go to the main branch. Good job!'", "checks-passed-banner": "echo 'All conditions passed. Ready to go to the main branch. Good job!'",
"before-main-branch-merge": "npm run lint && npm run check-code && npm run checks-passed-banner", "before-main-branch-merge": "npm run lint && npm run check-code && npm run checks-passed-banner",
"cypress": "npx cypress open", "cypress": "npx cypress open",
"electron:package:mac": "npm run build && electron-builder -m -c.extraMetadata.main=electron.js", "electron:package:mac": "npm run build && electron-builder -m -c.extraMetadata.main=electron.js",
"electron:package:win": "npm run build && electron-builder -w -c.extraMetadata.main=electron.js", "electron:package:win": "npm run build && electron-builder -w -c.extraMetadata.main=electron.js",
"electron:package:linux": "npm run build && electron-builder -l -c.extraMetadata.main=electron.js" "electron:package:linux": "npm run build && electron-builder -l -c.extraMetadata.main=electron.js"
}, },
"repository": { "repository": {
@ -118,7 +118,8 @@
"cypress": "^4.7.0", "cypress": "^4.7.0",
"cypress-wait-until": "^1.7.1", "cypress-wait-until": "^1.7.1",
"del": "^6.0.0", "del": "^6.0.0",
"electron": "^21.2.0", "electron": "^6.1.12",
"electron-builder": "^22.10.3",
"eslint": "^8.22.0", "eslint": "^8.22.0",
"eslint-plugin-import": "^2.26.0", "eslint-plugin-import": "^2.26.0",
"file-loader": "^6.2.0", "file-loader": "^6.2.0",
@ -136,7 +137,6 @@
"wait-on": "^6.0.1", "wait-on": "^6.0.1",
"webpack": "^5.74.0", "webpack": "^5.74.0",
"webpack-cli": "^4.10.0", "webpack-cli": "^4.10.0",
"electron-builder": "^23.6.0",
"webpack-dev-server": "^4.10.0" "webpack-dev-server": "^4.10.0"
}, },
"dependencies": { "dependencies": {
@ -146,7 +146,6 @@
"classnames": "2.2.5", "classnames": "2.2.5",
"clipper-lib": "6.2.1", "clipper-lib": "6.2.1",
"earcut": "2.1.1", "earcut": "2.1.1",
"font-awesome": "4.7.0", "font-awesome": "4.7.0",
"immer": "^9.0.12", "immer": "^9.0.12",
"jsketcher-occ-engine": "1.0.1-5efaf53accb45bac475155fc4d5552642c19e91e", "jsketcher-occ-engine": "1.0.1-5efaf53accb45bac475155fc4d5552642c19e91e",
@ -168,5 +167,5 @@
"three": "^0.143.0", "three": "^0.143.0",
"url": "^0.11.0" "url": "^0.11.0"
}, },
"proxy":"http://localhost:3000" "proxy": "http://localhost:3000"
} }