feat: 动态载入node-serialport和node-usb避免nwjs下server异常
This commit is contained in:
37
config.json.nw
Normal file
37
config.json.nw
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"debug": true,
|
||||
"arduino": {
|
||||
"path": {
|
||||
"folder": "./arduino-cli",
|
||||
"cli": "./arduino-cli/arduino-cli.exe",
|
||||
"libraries": [
|
||||
"./arduino-libs/arduino-cli/libraries"
|
||||
],
|
||||
"config": "./arduino-cli/arduino-cli.json"
|
||||
}
|
||||
},
|
||||
"micropython": {
|
||||
"path": {
|
||||
"ampy": "./mixly/tools/python/ampy_main.py",
|
||||
"esptool": "./mixly/tools/python/esptool_main.py"
|
||||
}
|
||||
},
|
||||
"python": {
|
||||
"path": {
|
||||
"cli": "python3"
|
||||
}
|
||||
},
|
||||
"client": {
|
||||
"path": "./mixly",
|
||||
"port": 7000,
|
||||
"protocol": "http:"
|
||||
},
|
||||
"server": {
|
||||
"path": {
|
||||
"temp": "./temp"
|
||||
},
|
||||
"mode": "compiler",
|
||||
"protocol": "ws:",
|
||||
"port": 7000
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user