From f5aa351da2e1a8cdebf6782cfbdaadf24ba3ec49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B1=BC=E9=A6=99ROS?= <87068644+fishros@users.noreply.github.com> Date: Wed, 10 Jul 2024 23:16:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(pio):=20=E5=A2=9E=E5=8A=A0=E9=9D=9E?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E5=AE=89=E8=A3=85=E7=8A=B6=E6=80=81=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/tool_install_micros_fishbot_env.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tools/tool_install_micros_fishbot_env.py b/tools/tool_install_micros_fishbot_env.py index d492fe8..1efd24a 100644 --- a/tools/tool_install_micros_fishbot_env.py +++ b/tools/tool_install_micros_fishbot_env.py @@ -42,6 +42,22 @@ def install_nodejs(self): $HOME.platformio/penv/bin/pio pkg install --global --tool "platformio/tool-mkspiffs" echo "当前进度: 7/7" $HOME.platformio/penv/bin/pio pkg install --global --tool "platformio/tool-mklittlefs" +echo "\n开始确认ESP32开发依赖库安装状态~" +export http_proxy= && export https_proxy= +echo "当前进度: 1/7" +$HOME.platformio/penv/bin/pio pkg install --global --platform "platformio/espressif32" +echo "当前进度: 2/7" +$HOME.platformio/penv/bin/pio pkg install --global --tool "platformio/contrib-piohome" +echo "当前进度: 3/7" +$HOME.platformio/penv/bin/pio pkg install --global --tool "platformio/framework-arduinoespressif32" +echo "当前进度: 4/7" +$HOME.platformio/penv/bin/pio pkg install --global --tool "platformio/tool-scons" +echo "当前进度: 5/7" +$HOME.platformio/penv/bin/pio pkg install --global --tool "platformio/tool-mkfatfs" +echo "当前进度: 6/7" +$HOME.platformio/penv/bin/pio pkg install --global --tool "platformio/tool-mkspiffs" +echo "当前进度: 7/7" +$HOME.platformio/penv/bin/pio pkg install --global --tool "platformio/tool-mklittlefs" """.format(user_home) FileUtils.new('/tmp/', 'install_pio.sh',install_sh) CmdTask('sudo -u {} bash /tmp/install_pio.sh'.format(user), os_command=True).run()