chore: 更新arduino-cli版本 (version: 1.3.1)
This commit is contained in:
0
.eslintrc.cjs
Normal file → Executable file
0
.eslintrc.cjs
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
.gitmodules
vendored
Normal file → Executable file
0
.gitmodules
vendored
Normal file → Executable file
0
arduino-cli.json
Normal file → Executable file
0
arduino-cli.json
Normal file → Executable file
0
cert/server.crt
Normal file → Executable file
0
cert/server.crt
Normal file → Executable file
0
cert/server.key
Normal file → Executable file
0
cert/server.key
Normal file → Executable file
4
config.json
Normal file → Executable file
4
config.json
Normal file → Executable file
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"client": {
|
||||
"path": "./mixly",
|
||||
"port": 7000,
|
||||
"port": 7100,
|
||||
"protocol": "https:"
|
||||
},
|
||||
"server": {
|
||||
@@ -32,6 +32,6 @@
|
||||
},
|
||||
"mode": "all",
|
||||
"protocol": "wss:",
|
||||
"port": 7000
|
||||
"port": 7100
|
||||
}
|
||||
}
|
||||
0
config.json.nw
Normal file → Executable file
0
config.json.nw
Normal file → Executable file
0
nodemon.json
Normal file → Executable file
0
nodemon.json
Normal file → Executable file
0
package-lock.json
generated
Normal file → Executable file
0
package-lock.json
generated
Normal file → Executable file
0
package.json
Normal file → Executable file
0
package.json
Normal file → Executable file
0
package.json.nw
Normal file → Executable file
0
package.json.nw
Normal file → Executable file
4
scripts/arduino-install.js
Normal file → Executable file
4
scripts/arduino-install.js
Normal file → Executable file
@@ -10,10 +10,10 @@ import * as tar from 'tar';
|
||||
import shell from 'shelljs';
|
||||
|
||||
|
||||
const CLI_VERSION = '1.2.2';
|
||||
const CLI_VERSION = '1.3.1';
|
||||
const ARDUINO_AVR_VERSION = '1.8.6';
|
||||
const ARDUINO_ESP8266_VERSION = '3.1.1';
|
||||
const ARDUINO_ESP32_VERSION = '2.0.15';
|
||||
const ARDUINO_ESP32_VERSION = '2.0.15-cn';
|
||||
const CLI_DIR_PATH = path.resolve(process.cwd(), 'arduino-cli');
|
||||
|
||||
|
||||
|
||||
0
scripts/cert-generate.js
Normal file → Executable file
0
scripts/cert-generate.js
Normal file → Executable file
0
src/common/boards.js
Normal file → Executable file
0
src/common/boards.js
Normal file → Executable file
0
src/common/config.js
Normal file → Executable file
0
src/common/config.js
Normal file → Executable file
0
src/common/debug.js
Normal file → Executable file
0
src/common/debug.js
Normal file → Executable file
0
src/common/events-base.js
Normal file → Executable file
0
src/common/events-base.js
Normal file → Executable file
0
src/common/events.js
Normal file → Executable file
0
src/common/events.js
Normal file → Executable file
0
src/common/id-generator.js
Normal file → Executable file
0
src/common/id-generator.js
Normal file → Executable file
0
src/common/mstring.js
Normal file → Executable file
0
src/common/mstring.js
Normal file → Executable file
0
src/common/registry.js
Normal file → Executable file
0
src/common/registry.js
Normal file → Executable file
0
src/common/serial.js
Normal file → Executable file
0
src/common/serial.js
Normal file → Executable file
0
src/common/shell-ampy.js
Normal file → Executable file
0
src/common/shell-ampy.js
Normal file → Executable file
2
src/common/shell-arduino.js
Normal file → Executable file
2
src/common/shell-arduino.js
Normal file → Executable file
@@ -19,6 +19,7 @@ export default class ShellArduino extends Shell {
|
||||
'--verbose',
|
||||
'--libraries', `"${arduino.path.libraries.join('","')}"`,
|
||||
'--build-path', `"${arduino.path.build}"`,
|
||||
'--output-dir', `"${arduino.path.output}"`,
|
||||
`"${arduino.path.code}"`,
|
||||
'--no-color'
|
||||
].join(' ');
|
||||
@@ -38,6 +39,7 @@ export default class ShellArduino extends Shell {
|
||||
'--verbose',
|
||||
'--libraries', `"${arduino.path.libraries.join('","')}"`,
|
||||
'--build-path', `"${arduino.path.build}"`,
|
||||
'--output-dir', `"${arduino.path.output}"`,
|
||||
`"${arduino.path.code}"`,
|
||||
'--no-color'
|
||||
].join(' ');
|
||||
|
||||
0
src/common/shell-micropython.js
Normal file → Executable file
0
src/common/shell-micropython.js
Normal file → Executable file
0
src/common/shell.js
Normal file → Executable file
0
src/common/shell.js
Normal file → Executable file
20
src/common/socket.js
Normal file → Executable file
20
src/common/socket.js
Normal file → Executable file
@@ -78,11 +78,14 @@ export default class Socket {
|
||||
const shell = this.#shellArduino_.getItem(socket.id);
|
||||
config.path = config?.path ?? {};
|
||||
config.path.build = path.resolve(TEMP_PATH, socket.id, 'build');
|
||||
config.path.output = path.resolve(TEMP_PATH, socket.id, 'output');
|
||||
config.path.code = path.resolve(TEMP_PATH, socket.id, 'testArduino/testArduino.ino');
|
||||
let [error1,] = await to(fsExtra.ensureDir(config.path.build));
|
||||
error1 && Debug.error(error1);
|
||||
let [error2,] = await to(fsExtra.outputFile(config.path.code, config.code));
|
||||
let [error2,] = await to(fsExtra.ensureDir(config.path.output));
|
||||
error2 && Debug.error(error2);
|
||||
let [error3,] = await to(fsExtra.outputFile(config.path.code, config.code));
|
||||
error3 && Debug.error(error3);
|
||||
const [error, result] = await to(shell.compile(config));
|
||||
if (error) {
|
||||
Debug.error(error);
|
||||
@@ -100,11 +103,14 @@ export default class Socket {
|
||||
const shell = this.#shellArduino_.getItem(socket.id);
|
||||
config.path = config?.path ?? {};
|
||||
config.path.build = path.resolve(TEMP_PATH, socket.id, 'build');
|
||||
config.path.output = path.resolve(TEMP_PATH, socket.id, 'output');
|
||||
config.path.code = path.resolve(TEMP_PATH, socket.id, 'testArduino/testArduino.ino');
|
||||
let [error1,] = await to(fsExtra.ensureDir(config.path.build));
|
||||
error1 && Debug.error(error1);
|
||||
let [error2,] = await to(fsExtra.outputFile(config.path.code, config.code));
|
||||
let [error2,] = await to(fsExtra.ensureDir(config.path.output));
|
||||
error2 && Debug.error(error2);
|
||||
let [error3,] = await to(fsExtra.outputFile(config.path.code, config.code));
|
||||
error3 && Debug.error(error3);
|
||||
const [error, result] = await to(shell.compile(config));
|
||||
if (error) {
|
||||
Debug.error(error);
|
||||
@@ -219,11 +225,14 @@ export default class Socket {
|
||||
const shell = this.#shellArduino_.getItem(socket.id);
|
||||
config.path = config?.path ?? {};
|
||||
config.path.build = path.resolve(TEMP_PATH, socket.id, 'build');
|
||||
config.path.output = path.resolve(TEMP_PATH, socket.id, 'output');
|
||||
config.path.code = path.resolve(TEMP_PATH, socket.id, 'testArduino/testArduino.ino');
|
||||
let [error1,] = await to(fsExtra.ensureDir(config.path.build));
|
||||
error1 && Debug.error(error1);
|
||||
let [error2,] = await to(fsExtra.outputFile(config.path.code, config.code));
|
||||
let [error2,] = await to(fsExtra.ensureDir(config.path.output));
|
||||
error2 && Debug.error(error2);
|
||||
let [error3,] = await to(fsExtra.outputFile(config.path.code, config.code));
|
||||
error3 && Debug.error(error3);
|
||||
const [error, result] = await to(shell.compile(config));
|
||||
error && Debug.error(error);
|
||||
callback([error, result]);
|
||||
@@ -233,11 +242,14 @@ export default class Socket {
|
||||
config.path = config?.path ?? {};
|
||||
const shell = this.#shellArduino_.getItem(socket.id);
|
||||
config.path.build = path.resolve(TEMP_PATH, socket.id, 'build');
|
||||
config.path.output = path.resolve(TEMP_PATH, socket.id, 'output');
|
||||
config.path.code = path.resolve(TEMP_PATH, socket.id, 'testArduino/testArduino.ino');
|
||||
let [error1,] = await to(fsExtra.ensureDir(config.path.build));
|
||||
error1 && Debug.error(error1);
|
||||
let [error2,] = await to(fsExtra.outputFile(config.path.code, config.code));
|
||||
let [error2,] = await to(fsExtra.ensureDir(config.path.output));
|
||||
error2 && Debug.error(error2);
|
||||
let [error3,] = await to(fsExtra.outputFile(config.path.code, config.code));
|
||||
error3 && Debug.error(error3);
|
||||
const [error, result] = await to(shell.upload(config));
|
||||
error && Debug.error(error);
|
||||
callback([error, result]);
|
||||
|
||||
0
src/common/utils.js
Normal file → Executable file
0
src/common/utils.js
Normal file → Executable file
0
src/index.js
Normal file → Executable file
0
src/index.js
Normal file → Executable file
0
webpack.common.cjs
Normal file → Executable file
0
webpack.common.cjs
Normal file → Executable file
0
webpack.dev.cjs
Normal file → Executable file
0
webpack.dev.cjs
Normal file → Executable file
0
webpack.nw.cjs
Normal file → Executable file
0
webpack.nw.cjs
Normal file → Executable file
0
webpack.prod.cjs
Normal file → Executable file
0
webpack.prod.cjs
Normal file → Executable file
Reference in New Issue
Block a user