kopia lustrzana https://github.com/dceejay/electron-node-red
rodzic
3abecac973
commit
15fbafd631
Plik binarny nie jest wyświetlany.
38
main.js
38
main.js
|
@ -39,7 +39,7 @@ const path = require('path');
|
|||
const http = require('http');
|
||||
const express = require("express");
|
||||
const electron = require('electron');
|
||||
const isDev = require('electron-is-dev');
|
||||
// const isDev = require('electron-is-dev');
|
||||
const Store = require('electron-store');
|
||||
const store = new Store();
|
||||
|
||||
|
@ -257,24 +257,24 @@ if (process.platform === 'darwin') {
|
|||
}
|
||||
|
||||
// Add Dev menu if in dev mode
|
||||
if (isDev) {
|
||||
template.push({
|
||||
label: 'Development',
|
||||
submenu: [
|
||||
{ label: 'Reload', accelerator: 'CmdOrCtrl+R',
|
||||
click (item, focusedWindow) {
|
||||
if (focusedWindow) focusedWindow.reload()
|
||||
}
|
||||
},
|
||||
{ label: 'Toggle Developer Tools',
|
||||
accelerator: process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
|
||||
click (item, focusedWindow) {
|
||||
if (focusedWindow) focusedWindow.webContents.toggleDevTools()
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
}
|
||||
// if (isDev) {
|
||||
// template.push({
|
||||
// label: 'Development',
|
||||
// submenu: [
|
||||
// { label: 'Reload', accelerator: 'CmdOrCtrl+R',
|
||||
// click (item, focusedWindow) {
|
||||
// if (focusedWindow) focusedWindow.reload()
|
||||
// }
|
||||
// },
|
||||
// { label: 'Toggle Developer Tools',
|
||||
// accelerator: process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
|
||||
// click (item, focusedWindow) {
|
||||
// if (focusedWindow) focusedWindow.webContents.toggleDevTools()
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// })
|
||||
// }
|
||||
|
||||
function saveFlow() {
|
||||
const file_path = dialog.showSaveDialogSync({
|
||||
|
|
10
package.json
10
package.json
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "electron_node_red",
|
||||
"version": "3.0.2",
|
||||
"version": "3.1.3",
|
||||
"description": "Electron Node-RED application starter kit for development",
|
||||
"main": "main.js",
|
||||
"NRelectron": {
|
||||
|
@ -29,8 +29,8 @@
|
|||
"electron-is-dev": "^2.0.0",
|
||||
"electron-store": "^8.0.1",
|
||||
"express": "^4.17.2",
|
||||
"fs-extra": "^11.1.0",
|
||||
"node-red": "3.0.2",
|
||||
"fs-extra": "^11.2.0",
|
||||
"node-red": "3.1.3",
|
||||
"node-red-contrib-play-audio": "*",
|
||||
"node-red-contrib-web-worldmap": "*",
|
||||
"node-red-dashboard": "*",
|
||||
|
@ -56,8 +56,8 @@
|
|||
},
|
||||
"homepage": "https://github.com/dceejay/electron-node-red#readme",
|
||||
"devDependencies": {
|
||||
"electron": "^15.0.0",
|
||||
"electron-builder": "^23.3.3"
|
||||
"electron": "^28.1.4",
|
||||
"electron-builder": "^24.9.1"
|
||||
},
|
||||
"build": {
|
||||
"appId": "com.electron.node-red",
|
||||
|
|
Ładowanie…
Reference in New Issue