Hi
For currently if we use compiled electron-node-red package, then it will save installed node to $home$/.node-red. But i think save to local folder is good idea, cus we can easyly re-package and hand out it.
add the settings follow this, node-red will install nodes to current folder:
//save all nodes for local folder
settings.userDir = './.node-red/';
settings.nodesDir = './.node-red/node_modules';
But it take a little problem, when you install a new node library in node-red, it will fail. just close program and open, it will success load.
And please zip the ./dist/win-unpacked folder for windows, if we use electron then we want a full portable program just unzip-run.
Another problem is single instance lock. add the follow line:
//Only allow one instance
let isSingleInstance = app.requestSingleInstanceLock()
if (!isSingleInstance) {
app.quit()
}
Also it take a little problem, the second instance will quit but not focus on last one instance.. idk how to fix it.
The last one is modify autoHideMenuBar : true in function createWindow() , for end user they dont want to see menubar at starting, just see node-red ui is enough.
I'm work for industrial automation, use electron-node-red to communication plcs and create a easy-to-use HMI. You repositories is great for us. But maybe my suggest is wrong, please point me.
Thanks you
Hi$home$ /.node-red. But i think save to local folder is good idea, cus we can easyly re-package and hand out it.
For currently if we use compiled electron-node-red package, then it will save installed node to
add the settings follow this, node-red will install nodes to current folder:
But it take a little problem, when you install a new node library in node-red, it will fail. just close program and open, it will success load.
And please zip the ./dist/win-unpacked folder for windows, if we use electron then we want a full portable program just unzip-run.
Another problem is single instance lock. add the follow line:
Also it take a little problem, the second instance will quit but not focus on last one instance.. idk how to fix it.
The last one is modify
autoHideMenuBar : trueinfunction createWindow(), for end user they dont want to see menubar at starting, just see node-red ui is enough.I'm work for industrial automation, use electron-node-red to communication plcs and create a easy-to-use HMI. You repositories is great for us. But maybe my suggest is wrong, please point me.
Thanks you