kopia lustrzana https://github.com/dceejay/electron-node-red
tidy up package.json and template
rodzic
218a9daf75
commit
500353f4ce
|
@ -28,9 +28,9 @@ build parameters, product name, whether you want the app version to be editable,
|
||||||
|
|
||||||
The app name, version and description are picked up from the package.json file of the original project.
|
The app name, version and description are picked up from the package.json file of the original project.
|
||||||
|
|
||||||
When running using yarn start - the flow file is picked from the current directory. When running as an app (but only if editable), then the flow file is copied into the users `.node-red` directory and is read and written from there. The deafult name can be changed in the package.json file if required.
|
When running using yarn start - the flow file is picked from the current directory. When running as an app (but only if editable), then the flow file is copied into the users `.node-red` directory and is read and written from there. The default name can be changed in the package.json file if required.
|
||||||
|
|
||||||
**NOTE**: Currently the settings are set around line 109 of the `main.js` file. If you do use any
|
**NOTE**: Currently the settings are set around line 110 of the `main.js` file. If you do use any
|
||||||
custom settings then currently you will need to modify this manually.
|
custom settings then currently you will need to modify this manually.
|
||||||
|
|
||||||
## Configuring the project for building
|
## Configuring the project for building
|
||||||
|
@ -72,7 +72,7 @@ Runtimes are created in the `dist` directory under the `electron-node-red` proje
|
||||||
Generally you can just add the required parameter to the command
|
Generally you can just add the required parameter to the command
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn && yarn dist -w // for windows (see below for building on Mac Catalina)
|
yarn && yarn dist -w // for windows (but use multi-platform builder below for building on Mac Catalina)
|
||||||
yarn && yarn dist -l // for linux
|
yarn && yarn dist -l // for linux
|
||||||
yarn && yarn dist -m // for mac
|
yarn && yarn dist -m // for mac
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "electron_node_red",
|
"name": "electron_node_red",
|
||||||
"version": "1.0.3",
|
"version": "1.0.6",
|
||||||
"description": "Electron Node-RED application starter kit for development",
|
"description": "Electron Node-RED application starter kit for development",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"NRelectron": {
|
"NRelectron": {
|
||||||
|
@ -26,9 +26,9 @@
|
||||||
"url": "git+https://github.com/dceejay/electron-node-red.git"
|
"url": "git+https://github.com/dceejay/electron-node-red.git"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"electron-is-dev": "*",
|
"electron-is-dev": "^1.2.0",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
"node-red": "1.0.3"
|
"node-red": "1.0.6"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"electron",
|
"electron",
|
||||||
|
@ -45,13 +45,13 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/dceejay/electron-node-red#readme",
|
"homepage": "https://github.com/dceejay/electron-node-red#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"electron": "^7.1.1",
|
"electron": "^7.2.1",
|
||||||
"electron-builder": "^22.1.0"
|
"electron-builder": "^22.5.1"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "com.electron.node-red",
|
"appId": "com.electron.node-red",
|
||||||
"productName": "Node-RED Electron",
|
"productName": "Node-RED Electron",
|
||||||
"copyright": "Copyright © 2019 D.Conway-Jones",
|
"copyright": "Copyright © 2018,2020 D.Conway-Jones",
|
||||||
"mac": {
|
"mac": {
|
||||||
"category": "public.app-category.developer-tools",
|
"category": "public.app-category.developer-tools",
|
||||||
"target": "dmg"
|
"target": "dmg"
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
"allowLoadSave": false,
|
"allowLoadSave": false,
|
||||||
"showMap": false,
|
"showMap": false,
|
||||||
"kioskMode": false,
|
"kioskMode": false,
|
||||||
|
"addNodes": true,
|
||||||
"flowFile": "electronflow.json",
|
"flowFile": "electronflow.json",
|
||||||
"start": "dashboard"
|
"start": "dashboard"
|
||||||
},
|
},
|
||||||
|
@ -25,7 +26,7 @@
|
||||||
"url": "git+https://github.com/dceejay/electron-node-red.git"
|
"url": "git+https://github.com/dceejay/electron-node-red.git"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"electron-is-dev": "~1.2.0",
|
"electron-is-dev": "^1.2.0",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
"node-red": "1.0.6",
|
"node-red": "1.0.6",
|
||||||
"node-red-contrib-play-audio": "*",
|
"node-red-contrib-play-audio": "*",
|
||||||
|
@ -57,7 +58,7 @@
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "com.electron.node-red",
|
"appId": "com.electron.node-red",
|
||||||
"productName": "Node-RED Electron",
|
"productName": "Node-RED Electron",
|
||||||
"copyright": "Copyright © 2019 D.Conway-Jones",
|
"copyright": "Copyright © 2018,2020 D.Conway-Jones",
|
||||||
"mac": {
|
"mac": {
|
||||||
"category": "public.app-category.developer-tools",
|
"category": "public.app-category.developer-tools",
|
||||||
"target": "dmg"
|
"target": "dmg"
|
||||||
|
|
Ładowanie…
Reference in New Issue