Files
ws2/scripts/download.sh
2026-01-24 13:02:13 +08:00

20 lines
373 B
Bash
Executable File

#!/bin/sh
# 连接并打印文件列表
mpremote connect /dev/tty.wchusbserial14310 ls
# 生成romfs文件系统并上传
mpremote romfs -o website.romfs build website
mpremote romfs deploy website.romfs
# 复制文件
for file in src/*.py; do
if [ -f "$file" ]; then
mpremote fs cp "$file" :
fi
done
# 打印文件列表
mpremote ls /
mpremote ls /rom