feat(core): 更新py-esptool (version: 4.8.1)

This commit is contained in:
王立帮
2025-04-07 23:51:29 +08:00
parent 6b4ca0a883
commit 937ecf44f4
120 changed files with 1871 additions and 8899 deletions

View File

@@ -255,11 +255,11 @@ Boards.changeTo = (boardName) => {
let pyToolsPath = "{srcPath}/tools/python/";
let obj = {};
let pyTools = {
'esptool': 'esptool/__init__.py',
'esptool': 'esptool_main.py',
'kflash': 'kflash.py',
'stm32loader': 'stm32loader.py',
'stm32bl': 'stm32bl.py',
'ampy': 'ampy/cli.py'
'ampy': 'ampy_main.py'
};
if (!Env.hasSocketServer) {
for (let key in pyTools) {

View File

@@ -36,7 +36,7 @@ class AmpyExt extends Ampy {
run: '{{&ampy}} -p {{&port}} -b {{&baud}} -i 0 run "{{&filePath}}"'
}
this.AMPY_PATH = path.join(Env.srcDirPath, './tools/python/ampy/cli.py');
this.AMPY_PATH = path.join(Env.srcDirPath, './tools/python/ampy_main.py');
this.AMPY_TEMPLATE = Mustache.render('"{{&python3}}" "{{&ampy}}"', {
python3: Env.python3Path,