diff --git a/boards/default_src/micropython_educore/origin/config.json b/boards/default_src/micropython_educore/origin/config.json index 1e586b4c..896b07e3 100644 --- a/boards/default_src/micropython_educore/origin/config.json +++ b/boards/default_src/micropython_educore/origin/config.json @@ -27,7 +27,7 @@ "{indexPath}/../micropython/build/lib", "{indexPath}/build/lib" ], - "command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload/main.py\"", + "command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload\"", "filePath": "{indexPath}/build/upload/main.py", "copyLib": false, "reset": [] diff --git a/boards/default_src/micropython_esp32/origin/config.json b/boards/default_src/micropython_esp32/origin/config.json index 44f313d4..ae9e81ef 100644 --- a/boards/default_src/micropython_esp32/origin/config.json +++ b/boards/default_src/micropython_esp32/origin/config.json @@ -29,7 +29,7 @@ "{indexPath}/build/lib", "{indexPath}/../micropython/build/lib" ], - "command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload/main.py\"", + "command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload\"", "filePath": "{indexPath}/build/upload/main.py", "copyLib": false, "reset": [] diff --git a/boards/default_src/micropython_esp32c2/origin/config.json b/boards/default_src/micropython_esp32c2/origin/config.json index 2b906beb..c7ba95a0 100644 --- a/boards/default_src/micropython_esp32c2/origin/config.json +++ b/boards/default_src/micropython_esp32c2/origin/config.json @@ -31,7 +31,7 @@ "{indexPath}/../micropython/build/lib", "{indexPath}/build/lib" ], - "command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload/main.py\"", + "command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload\"", "filePath": "{indexPath}/build/upload/main.py", "copyLib": false, "reset": [] diff --git a/boards/default_src/micropython_esp32c3/origin/config.json b/boards/default_src/micropython_esp32c3/origin/config.json index 41b35d03..31c7cc1c 100644 --- a/boards/default_src/micropython_esp32c3/origin/config.json +++ b/boards/default_src/micropython_esp32c3/origin/config.json @@ -29,7 +29,7 @@ "{indexPath}/build/lib", "{indexPath}/../micropython/build/lib" ], - "command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload/main.py\"", + "command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload\"", "filePath": "{indexPath}/build/upload/main.py", "copyLib": false, "reset": [] diff --git a/boards/default_src/micropython_esp32s2/origin/config.json b/boards/default_src/micropython_esp32s2/origin/config.json index f6eedc08..c13485e7 100644 --- a/boards/default_src/micropython_esp32s2/origin/config.json +++ b/boards/default_src/micropython_esp32s2/origin/config.json @@ -41,7 +41,7 @@ "{indexPath}/build/lib", "{indexPath}/../micropython/build/lib" ], - "command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload/main.py\"", + "command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload\"", "filePath": "{indexPath}/build/upload/main.py", "copyLib": false, "reset": [] diff --git a/boards/default_src/micropython_esp32s3/origin/config.json b/boards/default_src/micropython_esp32s3/origin/config.json index 1748408c..fc8a0307 100644 --- a/boards/default_src/micropython_esp32s3/origin/config.json +++ b/boards/default_src/micropython_esp32s3/origin/config.json @@ -24,7 +24,7 @@ "{indexPath}/build/lib", "{indexPath}/../micropython/build/lib" ], - "command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload/main.py\"", + "command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload\"", "filePath": "{indexPath}/build/upload/main.py", "copyLib": false, "reset": [] diff --git a/boards/default_src/micropython_robot/origin/config.json b/boards/default_src/micropython_robot/origin/config.json index 4770eb33..e86ff85b 100644 --- a/boards/default_src/micropython_robot/origin/config.json +++ b/boards/default_src/micropython_robot/origin/config.json @@ -25,7 +25,7 @@ "{indexPath}/build/lib", "{indexPath}/../micropython/build/lib" ], - "command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload/main.py\"", + "command": "\"{ampy}\" -p {com} -d 1 -r \"{reset}\" put \"{indexPath}/build/upload\"", "filePath": "{indexPath}/build/upload/main.py", "copyLib": false, "reset": [], diff --git a/common/modules/mixly-modules/electron/burn-upload.js b/common/modules/mixly-modules/electron/burn-upload.js index c30719be..f8b7539f 100644 --- a/common/modules/mixly-modules/electron/burn-upload.js +++ b/common/modules/mixly-modules/electron/burn-upload.js @@ -523,6 +523,8 @@ BU.uploadByCmd = async function (layerNum, port, command) { const code = editor.getCode(); if (upload.copyLib) { BU.copyLib(upload.filePath, code); + } else { + BU.copyLib(upload.filePath, ''); } fs_extra.outputFile(upload.filePath, code) .then(() => {